In the Access help for menus it states that you can set up custom functions to run the tasks for each menu item. I am having a huge problem with this and quickly running out of time.
In the help files it does not say where the function code needs to be placed for the menu items. But it does however say to set the menu in the startup dialog form to make a global menu system, which I did.
Some wording in the file eludes to the fact that you could create a global module to house all your code, so I tried this by creating a module named 'modGlobal'.
I then placed my function code in this module, and set the Action property of the menu item to:
=MN_View_Sales()
This didn't work so I tried:
=modGlobal.MN_View_Sales()
This didn't work either so I tried:
=Modules!modGlobal.MN_View_Sales()
This didn't work either so I then created wrapper functions. I changed all the functions in modGlobal to sub-routines. Then in the startup form I defined functions for each of the menu items which simply called the sub-routines of my modGlobal module. This worked for a time, well not even much time really.
When I set my startup form !visible and moved it to the backgroup to call up a new form instantly my global menu system lost all functionality. Now it has begun to display the same error messages as before, stating that the call made by the menu item can not be found?
Does anyone have any clue what is up? Where do I put the code? How do I refer to the collection of Module objects? Help...please.
In the help files it does not say where the function code needs to be placed for the menu items. But it does however say to set the menu in the startup dialog form to make a global menu system, which I did.
Some wording in the file eludes to the fact that you could create a global module to house all your code, so I tried this by creating a module named 'modGlobal'.
I then placed my function code in this module, and set the Action property of the menu item to:
=MN_View_Sales()
This didn't work so I tried:
=modGlobal.MN_View_Sales()
This didn't work either so I tried:
=Modules!modGlobal.MN_View_Sales()
This didn't work either so I then created wrapper functions. I changed all the functions in modGlobal to sub-routines. Then in the startup form I defined functions for each of the menu items which simply called the sub-routines of my modGlobal module. This worked for a time, well not even much time really.
When I set my startup form !visible and moved it to the backgroup to call up a new form instantly my global menu system lost all functionality. Now it has begun to display the same error messages as before, stating that the call made by the menu item can not be found?
Does anyone have any clue what is up? Where do I put the code? How do I refer to the collection of Module objects? Help...please.