1 code for many events (1 Viewer)

arage

Registered User.
Local time
Today, 07:30
Joined
Dec 30, 2000
Messages
537
Hi,
I’m very confused as to how to properly allocate code for my form controls b/c there’s so many ways the data should be accounted for since data cud be added,changed, or deleted in any number of ways. It seems I have to have code for every event property. Is this how it is for you guys currently coding for forms and verifying data in them?
Thanks!
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 02:30
Joined
Feb 19, 2002
Messages
43,346
As long as the edit rules are the same, you can consolidate the Add/change code in the BeforeUpdate event of the form. It is the last event fired before the record is actually added/updated. If you have special delete requirements, you can put them in the OnDelete event.
 

Users who are viewing this thread

Top Bottom