I created a macro called 'Autoexec' so it will run each time the DB is opened. I'd like it to run a simple piece of code, but I can't get it to work.
I thought that if I placed the code in a module called 'Global' it would find it by default, but apparently not. I also tried placing the code in a form and tried this line in the macro's Function Name box:
[Forms]![frmMainMenu]![ClearAppendAllTables]
But that didn't work either.
The subroutine is called "ClearAppendAllTables" and all it does is run a macro (which runs 6 macros in a specific sequence). How can I get my 'Autoexec' macro to run this little piece of code automatically each time the DB is opened?
Thanks in advance,
Kerry
I thought that if I placed the code in a module called 'Global' it would find it by default, but apparently not. I also tried placing the code in a form and tried this line in the macro's Function Name box:
[Forms]![frmMainMenu]![ClearAppendAllTables]
But that didn't work either.
The subroutine is called "ClearAppendAllTables" and all it does is run a macro (which runs 6 macros in a specific sequence). How can I get my 'Autoexec' macro to run this little piece of code automatically each time the DB is opened?
Thanks in advance,
Kerry