akshayjoshi222
Registered User.
- Local time
- Tomorrow, 04:42
- Joined
- Mar 14, 2010
- Messages
- 11
i have table "pdp" containing fields -
EmpName,EmpId,EmpPass
i have a form "chng password" containing fields-
textbox with name txtNewEmpPass
command button for changing the EmpPass
i want DLookUp To return the value of EmpPass from the table "pdp"
,it should compare the value with txtNewEmpPass(selection criteria)
i am using this code-
OldPass = DLookup("[EmpPass]", "pdp", "[EmpPass]=" & "'" & txtNewEmpPass & "'")
and if i use this code-
OldPass = DLookup("[EmpPass]", "pdp", "EmpPass='" & txtNewEmpPass.Value & "'")
it generates error invalid use of null
EmpName,EmpId,EmpPass
i have a form "chng password" containing fields-
textbox with name txtNewEmpPass
command button for changing the EmpPass
i want DLookUp To return the value of EmpPass from the table "pdp"
,it should compare the value with txtNewEmpPass(selection criteria)
i am using this code-
OldPass = DLookup("[EmpPass]", "pdp", "[EmpPass]=" & "'" & txtNewEmpPass & "'")
and if i use this code-
OldPass = DLookup("[EmpPass]", "pdp", "EmpPass='" & txtNewEmpPass.Value & "'")
it generates error invalid use of null
Last edited: