Sub main() in Access

D

Domac

Hi!,

Can I use sub main() or any other Autoexec macro or function before startup
form shows??


Thanks a lot!

Domac
 
S

strive4peace

Hi Doman

a macro named AutoExec will execute when the database is
opened. I usually set it to MAXIMIZE and then RunCode. You
can specify any global function for RunCode.

As opposed to defining a Startup form under Tools, if I am
running code, I have the code open the startup form.

Also, in the Open event of a form, the form is not yet
"active" ... It is rendered on the LOAD event.

Warm Regards,
Crystal
MVP Microsoft Access

remote programming and training
strive4peace2006 at yahoo.com
*
Have an awesome day ;)
 
W

Wolfgang Kais

Hello Domac.

Can I use sub main() or any other Autoexec macro or function before
startup form shows??

Let the autoexec macro open your startup form after running whatever.
 

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