A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I'm only guessing that it's an issue when you are opening the database again. You don't say where the error occurs. I do something similar and this is the code I use
On Error Resume Next
Set AccApp = GetObject(, "Access.Application")
On Error GoTo 0
If AccApp Is Nothing Then
Set AccApp = CreateObject("Access.Application")
AccApp.Visible = True
End If
On Error Resume Next
AccApp.OpenCurrentDatabase ("SourceFileName")
On Error GoTo 0
Maybe this will help you.