Hi
In my application I like to keep the same database version in both client and the server. So I created a procedure to overwrite the client database with the server database and then close the client application to restart with a new client version. But Access is not allowing me to open another object of the same database when its already running. I will be greatful if anyone can help me to me to fix this problem.
My code looks like:
Private Sub UpdateDB()
FileCopy strServer, strClient
DoEvents
strOpenClient = "MSAccess.exe " & strClient
Shell strOpenClient, vbNormalFocus
DoCmd.Hourglass False
DoCmd.Quit
End Sub
Cheers!
Mona
In my application I like to keep the same database version in both client and the server. So I created a procedure to overwrite the client database with the server database and then close the client application to restart with a new client version. But Access is not allowing me to open another object of the same database when its already running. I will be greatful if anyone can help me to me to fix this problem.
My code looks like:
Private Sub UpdateDB()
FileCopy strServer, strClient
DoEvents
strOpenClient = "MSAccess.exe " & strClient
Shell strOpenClient, vbNormalFocus
DoCmd.Hourglass False
DoCmd.Quit
End Sub
Cheers!
Mona
