Actually, I would modify this advice just a little. Instead of putting the
delete query in the AutoExec macro, I would put it in a regular macro. I
would still create a scheduled task, but I would add the /x switch to the
command line.
The /x switch will execute any macro of your choosing when opening the
database. The command line might look something like this:
C:\Program Files\Microsoft Office\Office\MSACCESS.EXE
C:\Library97\RemoteMacro.mdb /xAutoRun
In this case, I called the macro "AutoRun" and the database is called
"RemoteMacro.mdb"
On my website (
www.rogersaccesslibrary.com) you can find the
"RemoteMacro.mdb" sample which illustrates this. It's in A97 only, but you
can convert it.
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L