Microsoft
Software
Hardware
Network
Question : Can't run the macro or callback function 'mCloseRptOpenMenu"
Experts,
I created a custom ToolBar titled Reports. There are 2 actions a user can take. Print or Main Menu. The Reports open in ViewPreview. In the OnAction section for the Main Menu option on the Toolbar there is a module I have called mCloseRptOpenMenu. Here's that code for my module:
DoCmd.Close acReport, Screen.ActiveReport.Name
DoCmd.OpenForm "frmMainMenu"
Working with modules for me is as difficult to grasp as Global variables. I just can not grasp them (senior moments). I am getting the above error when I click on the menu option Main Menu
Answer : Can't run the macro or callback function 'mCloseRptOpenMenu"
The module only stores the sub routines and functions. Calling the module or naming the module something is irrelevant. You need to call the sub routine or function directly, yes.
Glad you got it working. :)
-Sean
Random Solutions
Rendering timeout when calling report through C# code
strConn Data Source= (trying to add the path root: /htdocs/db/profit.mdb)
Word document which has some checkboxes and dropdown menu needs some tweeking in it.
Data transfer from SQL server to Access Database
Excel sorting query (data in multiple rows and columns)
Cloning different model computers with multiple network drivers.
How To export SWF file from SwiShMAx as color and not Grey?
failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance the connection willl be closed
Sybase isql
Offline files do not always synchronize