Initialising 'Start Up' code - where can I put it

  • Thread starter Thread starter Isis
  • Start date Start date
I

Isis

If I want to run code when the DB is first opened - where do I put the code
?

Thanks
 
Isis said:
If I want to run code when the DB is first opened - where do I put the code
?

Either create a Macro named "Autoexec" and in that macro call your code with the
RunCode command (it will need to be a function rather than a sub)

OR

put it in the Open or Load event of a form that you have set to automatically
open in your Startup properties. In this case the code can actually be in the
form's module or it can simply Call the code that you have set up in a standard
module.
 

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

Back
Top