D
Dan
Hi:
Here is my code that works just for the first User Id and
psw; does not check/work for the other records. Any HELP
is appreciated
Thanks,
Dan
Option Compare Database
Private Sub OK_Click()
Dim eof
If (DLookup("password", "PWTbl")) = Me.pw Then
If (DLookup("userid", "PWTbl")) = Me.UI Then
DoCmd.Close
stDocName = "mainmenu"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Incorrect Password"
End If
End If
End Sub
Here is my code that works just for the first User Id and
psw; does not check/work for the other records. Any HELP
is appreciated
Thanks,
Dan
Option Compare Database
Private Sub OK_Click()
Dim eof
If (DLookup("password", "PWTbl")) = Me.pw Then
If (DLookup("userid", "PWTbl")) = Me.UI Then
DoCmd.Close
stDocName = "mainmenu"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Incorrect Password"
End If
End If
End Sub