Heh, the simplest answer is always under our nose. Thanx for pointing that out to me...for some reason i thought it should have something to do with Command2.Caption...anyways..thank you.
[Edited by Dim on 07-12-2000 at 04:41 PM]
Printable View
Heh, the simplest answer is always under our nose. Thanx for pointing that out to me...for some reason i thought it should have something to do with Command2.Caption...anyways..thank you.
[Edited by Dim on 07-12-2000 at 04:41 PM]
Use Exit Sub
[Edited by Megatron on 07-12-2000 at 04:40 PM]Code:Private Sub Command1_Click()
Retval = MsgBox("Do you want to quit?", vbYesNo + vbCritical, "Test")
If Retval = vbNo Then Exit Sub
Print "You selected YES"
End Sub
*LOL* Of course, in the time it took me to type my question, you & Megatron got it straightened out. So, nevermind...
[Edited by Mongo on 07-12-2000 at 04:47 PM]