I am trying to put together some code that will check the username upon opening the db. If the username matches, then the db stays open, otherwise it closes.
Public Function StartUp1()
If Environ("USERNAME") = xxxxxxx Then
Else
MsgBox ("Sorry
")
Application.Quit
End If
End Function
Public Function StartUp1()
If Environ("USERNAME") = xxxxxxx Then
Else
MsgBox ("Sorry

Application.Quit
End If
End Function