When I display, "Is Credit Card Number Correct?", in a message box, the user can click no and the code sets the focust to accountnumber field (textbox). I've specified this in the code, but it always sets the focus to the next field.
This is the code behind accountnumber field:
If MsgBox("Is Credit Card Number Correct?", vbDefaultButton1 + vbYesNo) = vbNo Then
accountnumber.SetFocus
My ultimate goal is get the user to insert a new credit card number. Is there a workaround this problem? Is there alternate way to get them back to the field. Or should I display an input box where they can input the correct number?
Thank you in advance.
Jeremy
This is the code behind accountnumber field:
If MsgBox("Is Credit Card Number Correct?", vbDefaultButton1 + vbYesNo) = vbNo Then
accountnumber.SetFocus
My ultimate goal is get the user to insert a new credit card number. Is there a workaround this problem? Is there alternate way to get them back to the field. Or should I display an input box where they can input the correct number?
Thank you in advance.
Jeremy