Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Thu, 31 Jul 2008 11:20:20 -0700 (PDT),    group: microsoft.public.office.developer.web.components        back       


Data Source Control BeforeUpdate Event Firing Twice   
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
date: Thu, 31 Jul 2008 11:20:20 -0700 (PDT)   author:   Greg Wilkerson

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us