PC Review


Reply
Thread Tools Rate Thread

BeforeUpdate on linked table

 
 
IgorM
Guest
Posts: n/a
 
      7th Sep 2009
Hi

I have a pivottable in excel that is connected to a query in Access. The
query joins a table and a linked table. Is it possible to run some macro
before the linked table is updated in order to check some data in source
file for the linked table? In other words I want to run some code that is
triggered when a user clicks to refresh a pivot table in Excel.

Kind regards
IgorM


 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      7th Sep 2009
No, Access doesn't support triggers.

The only way to run code before an update is to use a form.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"IgorM" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> I have a pivottable in excel that is connected to a query in Access. The
> query joins a table and a linked table. Is it possible to run some macro
> before the linked table is updated in order to check some data in source
> file for the linked table? In other words I want to run some code that is
> triggered when a user clicks to refresh a pivot table in Excel.
>
> Kind regards
> IgorM
>



 
Reply With Quote
 
Krzysztof Naworyta
Guest
Posts: n/a
 
      8th Sep 2009
Douglas J. Steele wrote:

Not exactly. We can use custom function in WHERE conditions to run some
code:

Select ...
From ...
Where
...
AND
MyFunction() = True

Sometimes MyFunction() can run another SQL...
(Let say some deletes/inserts to temporary table(s)...)

Unfortunately custom function cannot be evaluated from excel (IMHO)...

--
KN



| No, Access doesn't support triggers.
|
| The only way to run code before an update is to use a form.
|
|
| "IgorM" <(E-Mail Removed)> wrote in message
| news:(E-Mail Removed)...
|| Hi
||
|| I have a pivottable in excel that is connected to a query in Access.
|| The query joins a table and a linked table. Is it possible to run
|| some macro before the linked table is updated in order to check some
|| data in source file for the linked table? In other words I want to
|| run some code that is triggered when a user clicks to refresh a
|| pivot table in Excel.
||
|| Kind regards
|| IgorM

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ACCESS table linked to EXCEL spreadsheet. How to know which table is linked? Art Microsoft Access 3 2nd Apr 2007 12:51 PM
ACCESS table linked to EXCEL spreadsheet. How to know which table is linked? Art Microsoft Excel Discussion 3 1st Apr 2007 10:14 PM
Saving a record to a different table on 'BeforeUpdate' =?Utf-8?B?S2VpdGggV29vbGxhY290dA==?= Microsoft Access Forms 1 24th Jul 2006 11:23 AM
UPDATE a linked access table with value from a ODBC linked SQL table JB Microsoft Access 0 18th Nov 2003 09:27 PM
Re: field's BeforeUpdate vs form's BeforeUpdate Allen Browne Microsoft Access Forms 1 31st Jul 2003 01:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:02 AM.