Msgbox

Mechele

Registered User.
Local time
Today, 10:11
Joined
Jan 25, 2002
Messages
121
What value does the Reponse Field have if the user clicks the No button? Is it the number 7 or something else?

Private Sub SocialSecurityNumber_LostFocus()
Response = MsgBox("Is your Security Number Correct?", vbYesNo)
If Response = 7 Then
Me!SocialSecurityNumber.Enabled = True
End If
End Sub
 
I'm not sure of the value of response but try:-

if response = vbNo then....

(same for vbYes, vbCancel etc)
 
Yep "VBno" is the way!
 

Users who are viewing this thread

Back
Top Bottom