Hi All
I am building a form to generate unique passkey for each user. So there are 2 textboxes named
1. Create a Password
2. Confirm your Password
Now I want to check if both the passwords are same. If I write the following code, It always shows "Doesn't match"
Code:
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("tbl_RMS_PassKey")
If StrComp(txtPass, txtConfirmPass, vbBinaryCompare) = 0 Then
MsgBox "Match occurred"
else
msgbox "Match doesn't occur"
end if
If I change the above line code with the following then it still shows "doesn't match"
Code:
if txtpass=txtConfirmpass then
ANy help will be much appreciated.
Thanks