Thanks Shades. I tried out your solution and it works as you stated. The solution I am using was found in a book, and an exact copy is shown below. I modified it to prompt the user, and if the user clicks OK, all Access sessions are closed before for proceeding to use the application, which opens Access from Excel.
HTML Code:
Function IsRunning(ByVal myAppl As String) As Boolean
Dim applRef As Object
On Error Resume Next
Set applRef = GetObject(, myAppl)
If Err.Number = 429 Then
IsRunning = False
Else
IsRunning = True
End If
' clear object variable
Set applRef = Nothing
End Function
Jerry