if tfPassword.Text = tfPasswordVerify.Text then
MsgBox("Passwords do not match, reenter")
This code is in the LostFocus event of tfPasswordVerify
I have a simple method to test if 2 textfields match in a password test.
tfPassword is tab order 2, tfPasswordVerify is tab order 3 and tfFirstName is tab order 4
when the fields match, everything is fine, no msgbox, and focus goes to tfFirstName.
when the fields don't match, I get the msgbox but focus still goes to tfFirstName instead of going back to tfPassword
What am I doing wrong.