XML RSS
What is this?
Add to My Yahoo!
Add to My MSN
Add to Google

Home
Whats New!
Need a database?
Tips via email
Learn VBA
Questions Answered
Access Tips Index


AutoExec Macro

A short but very important tip.

If you wish to run code when your database opens, then make a Macro and call it AutoExec. Anything you ask this Macro to do will be carried out when the database opens.

For example, if you wish to check if the expiry period of a demo database has been reached, you could check it using code triggered by the AutoExec Macro (to run code, just select ‘RunCode’ from the drop down list in the Action section). If the expiry date has been reached then the database would close; obviously with a message to the user that this is happening and why.

 

Do you like this tip? Subscribe to my weekly Newsletter to receive tips weekly via email. Click Here to subscribe.

footer for Microsoft Access page