beforeUpdate event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In the oncurrent of my form I set some values of the fields displayed in the
form which triggers the beforeUpdate event of the form (Which in turn does
the validations which I have coded in the BeforeUpdate) . How can I disable
the beforeUpdate event when it is triggered from OnCurrent and make sure
BeforeUpdate happens only the data is changed by an user.

Thanks,

Ashu
 
Ashu said:
In the oncurrent of my form I set some values of the fields displayed in the
form which triggers the beforeUpdate event of the form (Which in turn does
the validations which I have coded in the BeforeUpdate) . How can I disable
the beforeUpdate event when it is triggered from OnCurrent and make sure
BeforeUpdate happens only the data is changed by an user.

It is very seldom necessary to dirty the form every time you navigate.
Could you set the default value property of those controls instead of
assigning them values?
 
Here when the form opens (which is a subform) it gets data from a table based
on the value selected in the mainform. When the table does not have matching
value I set some values for those fields in the OnCurrent Event which is
triggering the beforeUpdate.
Basically if the subform does not have existing data to fetch from the table
it is opened in a data entry mode with certain feilds incremented (not
auto-increment)...

Thanks,

Ashu
 
Back
Top