Steven Deetz
07-31-2001, 09:26 AM
I am trying to use the message box to help control events in code. For example a user will click on a button on a form to update a table. If I use MsgBox and select the vbOKCancel as the type of buttons to show on the message box why is it that when a user selects Cancel the update routine does not cancel? Thanks for any advice!
charityg
07-31-2001, 10:21 AM
Please post the code you are using.
Steven Deetz
08-01-2001, 08:44 AM
I got inspired by thinking of my code overnight. Today I tried this and it seems to work! Thanks for your time charityg!
If MsgBox("Do you wish to transfer this Writ to the Civil Process Table?", vbOKCancel, "Transfer of Writ to Civil") = vbCancel Then
MsgBox "This update has been canceled", vbInformation, "Transfer of Writ to Civil"
GoTo WritTransfertoCivil_Exit:
End If