Hi M,
I'm not sure whether this can be done in a macro, but it certainly can
in VBA. I'd do it like this:
Create a table containing two fields
tblVBARunDate
ProcName - text(20), primary key
DateStamp - date/time
Add one record to this table
"RecordsTransferred", [yesterday's date]
(Maybe you already have a "settings" table in your database. If so,
that's where this should go.)
Then in your code, before you run the append queries, use the DLookup()
function to look up the RecordsTransferred date. If it is equal to
today's date, go no further. If it is less than today's date then run
the append queries. Finally, run a query that updates
tblVBATunDate.DateStamp to Date() where ProcName =
"RecordsTransferred".
>I am importing tab-delimited files into temp tables using
>Access 97. The imports are successful and working
[quoted text clipped - 10 lines]
>
>M
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
Great. This will work fine. Thanks for all of your help.
M
>-----Original Message-----
>Hi M,
[quoted text clipped - 40 lines]
>Please respond in the newgroup and not by email.
>.