Effective Date for Macro to run

T

Tim S

I have a table that I input an effective date. Is it possible to run a macro
on based on that effective date? There are 2 TransferText files that I want
to send to another group.
 
S

Steve Schapel

Tim,

Yes, in principle this is no problem. You need to decide which *event*
you want this process to occur on. For example, if it's when the
database is first opened for the day, you would use the Open event of a
form that always opens when the database opens. Then, you would put a
Condition in the macro, like this...
DLookup("[Effective Date]","YourTable")=Date()

You would then probaly want to add another field to the table, let's say
a Yes/No field, to indicate that it has been processed, and add another
action to the macro (OpenQuery probably) to update this field, otherwise
the macro will run every time the database is opened that day (if it
gets opened more than once a day).

Hope that points you in a useful direction!
 

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