Search results

  1. B

    AutoExec - check Environ("USERNAME")

    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
  2. B

    AutoExec - check Environ("USERNAME")

    I am trying to put together some code that will check the username upon opening the db.
Back
Top Bottom