Private Sub cmdOK_Click()
If dlookup("count(*)","UserT","password= '" & CStr(textpw) & "'") = 0 then
MsgBox "Sorry, Your Password is incorrect."
Else
DoCmd.Close acForm, "PasswordaddF", acNosave
DoCmd.OpenForm ("editRecordF")
End If
End Sub
Sir,
I meant to say that this code will...