startup question about access97 macro

G

Guest

There is some documentation which seems to say that
if a macro is named autoexec it will run on startup in access97

i'm looking at a scheduler which lists the name of a macro in an
access project with a different name. It is called "agent"
I don't see any reference to the "agent" macro in the
startup screen- so question - how does this macro get to
be called first or called at all

tia
d
 
S

Steve Schapel

Dk,

I am not 100% clear what you are asking, but here are a few ideas that
may be relevant...
If an AutoExec macro includes a RunMacro action which calls another
macro, then this other macro will run when the database starts.
A scheduler can be set up to run a macro within an Access database by
using a /x switch at the end of the command line, for example the
command line might look like this...
"C:\PathToAccess\Msaccess.exe" "C:\PathToDB\MyDB.mdb" /x agent
A database can have its Startup options set under the Tools menu, to
open a particular form when the database opens, and then this form could
have code or macro on its On Load or On Open event to run another macro.
 

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