I have built a custom global menu for one of my database applications. I then set a sub-routine call for each of the menu item's ACTION properties with this syntax:
=MN_View_Sales()
My question is this, where does the actual sub-routine code go? The help files allude to creating a global module to hold these but when I place my sub-routines inside my 'modGlobal' I get an error stating that the sub-routine is an unrecognized call. I then tried to change the ACTION property to:
=modLogin.MV_View_Sales()
But this didn't work either. So I thought maybe I had to use the name qualification like with the form objects so I tried:
=[Modules]!modLogin.MV_View_Sales()
But again this gave me an error. I'm so confused where can I put my code? And is [Modules]! the correct way to fully qualify the name of a module in Access?
=MN_View_Sales()
My question is this, where does the actual sub-routine code go? The help files allude to creating a global module to hold these but when I place my sub-routines inside my 'modGlobal' I get an error stating that the sub-routine is an unrecognized call. I then tried to change the ACTION property to:
=modLogin.MV_View_Sales()
But this didn't work either. So I thought maybe I had to use the name qualification like with the form objects so I tried:
=[Modules]!modLogin.MV_View_Sales()
But again this gave me an error. I'm so confused where can I put my code? And is [Modules]! the correct way to fully qualify the name of a module in Access?