Data Source Control BeforeUpdate Event Firing Twice

G

Greg Wilkerson

Data Source Control BeforeUpdate Event Firing Twice

I have a Microsoft Access Data Access Page using a data source control
to enter records into a table. I have modified the script associated
with this page to perform data validation when the user click the save
button. If the validation fails, I pop up a message box explaining
the validation error and set the return value (info.ReturnValue) to
false, cancelling the event.

The problem I have is this event fires again, which creates a second,
and duplicate, pop up with the error message. While not a huge deal,
it is annoying.

Does anyone have any idea why this is happening and what I can do to
eliminate the second event from firing?

I am investigating the possibility of trying to track this event and
see if I can set some type of status value during the first
beforeupdate event and I can clear later. I have not found a
subsequent event I can reliably use to reset this status value.

Hopefully, this makes sense.

TIA,

Greg Wilkerson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top