I would like to prevent the user from opening more than one instances of a certain software that is written in Access and uses Jet as the db. Any ideas?
Function IsRunning() As Integer
DoCmd.Maximize
Dim db As DAO.Database
Set db = CurrentDb()
If TestDDELink(db.Name) Then
MsgBox "The database is already open"
Application.Quit
Set Application = Nothing
End If
End Function
Since this suggestion has verified existence of the database application already running, could I easily add after displaying the warning message sending Restore or Maximize to the other instance before exiting?