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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

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,182,040
Messages
5,933,371
Members
436,891
Latest member
DanDan

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