AlexN
Registered User.
- Local time
- Today, 08:39
- Joined
- Nov 10, 2014
- Messages
- 302
Hi there,
Every time a new record of a bound form is saved, a small piece of code in the AfterUpdate event of the last control of the record, adds a new record to another table (that means apart from the new record on the table the form is bound).
Where (in which event) do I put the code to update both records (in both tables) whenever a saved-existing record is changed?
I think I should put the existing code in the OnDirty event of the control and put the new code in the AfterUpdate event but I’m not sure about it, and it seems I’m not perfectly aware of when these two events fire.
I don’t want to use a command button for this.
Any ideas?
Thank you
Every time a new record of a bound form is saved, a small piece of code in the AfterUpdate event of the last control of the record, adds a new record to another table (that means apart from the new record on the table the form is bound).
Where (in which event) do I put the code to update both records (in both tables) whenever a saved-existing record is changed?
I think I should put the existing code in the OnDirty event of the control and put the new code in the AfterUpdate event but I’m not sure about it, and it seems I’m not perfectly aware of when these two events fire.
I don’t want to use a command button for this.
Any ideas?
Thank you