beforeUpdate event

A

Ashu

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
 
R

Rick Brandt

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?
 
A

Ashu

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
 

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