I would like to call a control's BeforeUpdate Event from a button. Here's my problem, if the BeforeUpdate event is cancelled, I would like to bypass the rest of the code on the button, if not I would like to run the rest of the code.
The BeforeUpdate is not a function so it doesn't return a value and I can't seem to find an access variable (e.g. acCancel) that is set that I can get my grubby paws on.
I can create a global or form cancel variable and set it in the BeforeUpdate event. Does anyone have a more elegant solution?
Thanks for your thoughts.
The BeforeUpdate is not a function so it doesn't return a value and I can't seem to find an access variable (e.g. acCancel) that is set that I can get my grubby paws on.
I can create a global or form cancel variable and set it in the BeforeUpdate event. Does anyone have a more elegant solution?
Thanks for your thoughts.