Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If Not (DLookUp("[AllowedName]", "tblEndUser", ("[AllowedName] = " & UserName)) Then
DoCmd.Quit
End If
Dim rs as dao.recordset
Dim strSQL as string
strSQL = "SELECT * FROM tblUsers WHERE Username = '" & Environ("UserName") & "'"
Set rs = Currentdb.openrecordset(strSQL)
If rs.BOF then
docmd.Quit
End If