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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Re: Has another "Autoexec" to execute when databas

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

Forum statistics

Threads
1,214,421
Messages
6,119,392
Members
448,891
Latest member
tpierce

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
Back
Top