YesNo on Form

iazcac

Registered User.
Local time
Today, 16:59
Joined
Sep 15, 2004
Messages
65
Hi

I am creating a message box which gives users the option to press Yes or No

If they press no i want them just to return to the form and the code to end, however I am stuck as to what to put here (see where asteriks are below)

Any help would be appreciated

Thanks

Chris


If Me.DespatchSent = True Then

MsgBox "An e-mail has already been sent to this customer. Are you sure you want to send it again?", vbYesNo, "E-mail has already been sent"

If vbNo Then *************************

End If
 
message

Dim strMsg As String
strMsg = "An e-mail has already been sent to this customer.& vbCrLf & Are you sure you want to send it again?"
If MsgBox(strMsg, vbQuestion + vbYesNo, "") = vbYes Then
type here what you want to do
Else
'do nothing
End If
 

Users who are viewing this thread

Back
Top Bottom