Let me say this as a preface, this database(s) and everything in them was here before I started to work here 2 months ago. The people that did all of the work have been gone for several years. I have correct tons of issues with all of the access databases people use here, this is one issue I can not resolve so I am reaching out for help. There is a switchboard form that is used to jump back and forth between databases such as when in a productivity database and want to go to a employee database you can use the form instead of closing one and opening another one. On 64bit Windows with 32bit office installed a 'runtime error 5 invalid call or argument' error comes up with switching between databases. This only happens with 64 bit, everyone else that uses 32 bit OS receives no errors and everything works fine. When I go to debug the following code is highlighted:
Private Sub OpenDatabaseFile(strDatabaseName As String, strDatabasePath As String)
Shell Chr(34) & FindAccessFileLocation & Chr(34) _
& " " & Chr(34) & strDatabasePath & strDatabaseName & Chr(34), vbMaximizedFocus
DoCmd.Quit acQuitSaveNone
End Sub
Does anyone have any ideas? Thanks