D
Dan message for David Ehrenreich
Hi David:
The way you said is working just fro the first psw and ui:
here is my code try to loop but still not working?
Please what am I missing:
Private Sub OK_Click()
If (DLookup("password", "PWTbl")) = Me.pw Then
If (DLookup("userid", "PWTbl")) = Me.UI Then
DoCmd.Close
stDocName = "Change Password"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Incorrect Password"
End If
End If
With Me.RecordsetClone
..MoveFirst
If Not .EOF And .BOF Then
Do Until .EOF
..MoveNext
Next
End If
End With
End Sub
Thanks,
Dan
The way you said is working just fro the first psw and ui:
here is my code try to loop but still not working?
Please what am I missing:
Private Sub OK_Click()
If (DLookup("password", "PWTbl")) = Me.pw Then
If (DLookup("userid", "PWTbl")) = Me.UI Then
DoCmd.Close
stDocName = "Change Password"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Incorrect Password"
End If
End If
With Me.RecordsetClone
..MoveFirst
If Not .EOF And .BOF Then
Do Until .EOF
..MoveNext
Next
End If
End With
End Sub
Thanks,
Dan