Keith Nichols
Registered User.
- Local time
- Today, 13:36
- Joined
- Jan 27, 2006
- Messages
- 431
Hi Guys,
I have a shell command that I use to open an update.mdb for replacing the FE with the current version.
I managed to get the update.mdb running from a macro but with the shell command, all I seem to be able to do is to run Access, not the target database. I'm sure this is something to do with the quotation marks but I can't figure it.
As always, any guidance gratefully received.
Regards,
Keith.
I have a shell command that I use to open an update.mdb for replacing the FE with the current version.
I managed to get the update.mdb running from a macro but with the shell command, all I seem to be able to do is to run Access, not the target database. I'm sure this is something to do with the quotation marks but I can't figure it.

Code:
Private Sub cmd_Update_A2003_Click()
On Error GoTo Err_Handler
' call the Utility database and close the Project Tracking database
Dim Updatemdb As String
Updatemdb = Shell("C:\Program Files\Microsoft Office\Office11\msaccess.exe C:\EDT DB\FE_Update.mdb", 1) ' Run Access
DoCmd.Quit
Exit_Here:
Exit Sub
Err_Handler:
MsgBox "Error detected"
Resume Exit_Here
End Sub
As always, any guidance gratefully received.
Regards,
Keith.