I am attempting to open a .accdb database using the following commands:
myshell = "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE" & " " & myFile
then:
myAppID = Shell(myshell, vbMaximizedFocus)
myFile is a valid path and .accdb database name. I get the error: "The command line you used to start Microsoft Access contains an option that Microsoft Access does not recognize..."
This command line opens Microsoft Access projects (.adp) all day long. Anybody have any ideas why I'm getting this error when trying to open a .accdb file?
Thanks for your help.
myshell = "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE" & " " & myFile
then:
myAppID = Shell(myshell, vbMaximizedFocus)
myFile is a valid path and .accdb database name. I get the error: "The command line you used to start Microsoft Access contains an option that Microsoft Access does not recognize..."
This command line opens Microsoft Access projects (.adp) all day long. Anybody have any ideas why I'm getting this error when trying to open a .accdb file?
Thanks for your help.