Using an event as a macro condition?

J

John Hipskind

Is there a way to use an event as a macro condition?
For example:
My macro imports Excel data into an Access report, and
then updates a Snapshot of the report.
However, things can happen where the import isn't
accomplished, so I only want to proceed to update the
Snapshot if I actually have a revised report.
Is there anything like a AfterUpdate condition that can
be used to test for an updated report before the Snapshot
is then updated?
Thanks.
John
 
S

Steve Schapel

John,

I assume you are importing the data from Excel into a table in your
database. The only way I can think of, is to keep a table with the
previous data, maybe using a MakeTable query, and then use another
query to compare the supposedly imported data with the previous data.
If there are non-matching records, proceed with the report.

- Steve Schapel, Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top