G
Guest
I have this simple procedure and it isn't working. I am sure it is something
really simple that I just haven't considered. I could program it another way
but I just want to know why it is not working as planned. I have a form with
a field [fldName] that's control source is a query. Here is the code:
Private Sub Form_Load()
If Me.fldName.Value = Null Then
cmdLogin.Enabled = False
MsgBox "You are not an authorized user. Access Denied!", vbOKOnly,
"Bye"
DoCmd.Quit
End If
End Sub
Any suggestions?
really simple that I just haven't considered. I could program it another way
but I just want to know why it is not working as planned. I have a form with
a field [fldName] that's control source is a query. Here is the code:
Private Sub Form_Load()
If Me.fldName.Value = Null Then
cmdLogin.Enabled = False
MsgBox "You are not an authorized user. Access Denied!", vbOKOnly,
"Bye"
DoCmd.Quit
End If
End Sub
Any suggestions?