Python code for running ms-Access Module Subroutine
问题 I am very new to programming and this is my first question on stackoverflow. I am trying to make python open an .accdb file and run a subroutine which is already defined in Access. I manage to do it with Excel using this code: import win32com.client xl=win32com.client.Dispatch("Excel.Application") xl.Visible=True xl.Workbooks.Open(Filename="<mydirectory>\\open",ReadOnly=1) xl.Application.Run("TestMe") #...access spreadsheet data... xl.Workbooks(1).Close(SaveChanges=0) xl.Application.Quit() xl