Has another "Autoexec" to execute when database cl

timwangTM

New Member
Joined
Jan 12, 2005
Messages
44
We know if there's macro named Autoexec in your database, Access will execute it automatically when open database. In my case, I use it to create my menu at the begining of opening database.

If there's another "Autoexec" which will be execute automatically when close database? In my case I want it to delete my menu before close database.

Or, if there's any other way to achieve my task: delete my menu when before database close? Does Access have Close event?

Any idea pls kindly share. Thanks in advance.
Tim
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

timwangTM

New Member
Joined
Jan 12, 2005
Messages
44
Re: Has another "Autoexec" to execute when databas

Thanks! I get the concept and finally I build up my solution.
 

Forum statistics

Threads
1,148,224
Messages
5,745,472
Members
423,953
Latest member
MrC54

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top