By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,308 Members | 716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,308 IT Pros & Developers. It's quick & easy.

How to set cancel option

P: 15
Ok kind of new to this part,

Here is my code I have set,

[PHP]If (CHKcat1 = 1) Or (CHKcatb = 1) Or (CHKcatc = 1) Or (CHKcorp = 1) Or (CHKexe = 1) Then
response = MsgBox("Are you sure you want to proceed?", vbOKCancel)
response = MsgBox("Please Select your ticket")
End If[/PHP]

But how to set it up so that if they hit cancel it will close the box and return to the form., When I click cancel it goes to
Mar 26 '08 #1
Share this Question
Share on Google+
1 Reply

P: 296
You are not testing the value of response.

If response = vbcancel then
'do something you want when the user presses cancel
Elseif response = vbok then
End if
Mar 27 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.