S
slr
I have filters setup to restrict the data available
to the user based on their logon id. The startup
form requires the entering of their logon, if they are not
on the authorized list of users, the app should close,
however, the following code is not working properly. Any
ideas would be helpful.
If (Eval("Forms!frmLogon!Authorized = ""yes"" ")) Then
Me.Visible = False
DoCmd.OpenForm "Switchboard", acNormal, "", "", ,
acNormal
'DoCmd.Close acForm, frmlogon
Else
MsgBox "You are not authorized for this application",
vbExclamation, ""
DoCmd.Quit
'application.Quit acExit
End If
to the user based on their logon id. The startup
form requires the entering of their logon, if they are not
on the authorized list of users, the app should close,
however, the following code is not working properly. Any
ideas would be helpful.
If (Eval("Forms!frmLogon!Authorized = ""yes"" ")) Then
Me.Visible = False
DoCmd.OpenForm "Switchboard", acNormal, "", "", ,
acNormal
'DoCmd.Close acForm, frmlogon
Else
MsgBox "You are not authorized for this application",
vbExclamation, ""
DoCmd.Quit
'application.Quit acExit
End If