How To Run A Ms Access Macro From Python
I'm trying to run an existing Microsoft Access Macro from a python script. What I currently have is import win32api,time from win32com.client import Dispatch strDbName = 'Exit.mdb
Solution 1:
The Run Method expects the name of a "user-defined Function or Sub procedure". But, if 'test' is the name of a macro, use RunMacro Method
objAccess.DoCmd.RunMacro('test')
Post a Comment for "How To Run A Ms Access Macro From Python"