C
Cheese_whiz
Hi all,
I've run into this before and worked around it, but I'm hoping someone can
give me a better way to deal with it....
If I put code on a button to save a record, and I have code in my
beforeupdate event of the form that validates data and throws an error
message (setup by me) if something is wrong, then I end up with two error
messages: 1 that I set up and another one from access. It basically works
like this:
1. Code begins running in click event of button.
2. Code jumps to beforeupdate event and throws my error message.
3. Code goes back to button's click event and throw's access' error message.
In the past, I've used a select case in the error handler to just ignore the
error access throws.
Is there a better way?
Thanks,
CW
I've run into this before and worked around it, but I'm hoping someone can
give me a better way to deal with it....
If I put code on a button to save a record, and I have code in my
beforeupdate event of the form that validates data and throws an error
message (setup by me) if something is wrong, then I end up with two error
messages: 1 that I set up and another one from access. It basically works
like this:
1. Code begins running in click event of button.
2. Code jumps to beforeupdate event and throws my error message.
3. Code goes back to button's click event and throw's access' error message.
In the past, I've used a select case in the error handler to just ignore the
error access throws.
Is there a better way?
Thanks,
CW