In the PercentDiscount_BeforeUpdate event I've added some extra code so that when the user clicks Cancel the Discount Rate is returned to the original value.
ElseIf MyResponse = vbCancel Then Me.PercentDiscount.Undo Cancel = True End If
I did this because if you make a change to the Percent Discount but then change your mind and press Cancel you must then make a change before you can continue. It won't let you move to another field. The Cancel = 1 simply stops the cursor leaving the control.
Regards Alex
Reply from Richard Rost:
Good idea.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Microsoft Access 305.