I need to kick off a macro when my database is opened. What is the easiest
way? Can I do it through the Startup option on the Tools menu? Or do I need
an event in my VBA code? Thanks!
>I need to kick off a macro when my database is opened. What is the easiest
> way? Can I do it through the Startup option on the Tools menu? Or do I need
> an event in my VBA code? Thanks!
If you name the macro AutoExec it will happen automatically.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Mark1 - 20 Mar 2007 17:40 GMT
That is pretty darn cool, Rick. However, I guess it doesn't work for
modules, eh? I named one AutoExec and it didn't work.
> >I need to kick off a macro when my database is opened. What is the easiest
> > way? Can I do it through the Startup option on the Tools menu? Or do I need
> > an event in my VBA code? Thanks!
>
> If you name the macro AutoExec it will happen automatically.