I have the following code that is supposed to open up a database on the server and run a macro to update the information in the tables. I keep getting a "Cannot find the macro 'mcrDailyShipmentInformationUpdate' error.
I know the macro exists...I am looking at it (and it is looking back at me with a childish smerk)
Any ideas??
Function UpdateDB()
Dim db As DAO.Database
Dim ws As DAO.Workspace
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase("J:\Transportation\On Time Reports\testop.mdb"
DoCmd.RunMacro ("mcrDailyShipmentInformationUpdate"
End Function
I know the macro exists...I am looking at it (and it is looking back at me with a childish smerk)
Any ideas??
Function UpdateDB()
Dim db As DAO.Database
Dim ws As DAO.Workspace
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase("J:\Transportation\On Time Reports\testop.mdb"
DoCmd.RunMacro ("mcrDailyShipmentInformationUpdate"
End Function