Hello,
On my main form, I have a combo box, and in its After Update event, I have
code to execute an append query.
It is intended as a one-time thing, to run when a new record is created, but
I just realized that it is easy to trigger this more than once, which then of
course messes up the database.
How can I ensure that the append operation is run only once?
Is there a way to check if the two tables that records are appended to
already have records with the main table's ID?
The target table/s have the following fields:
Table-specificID, MainTableID, CategoryID, and a few data fields.
Thank you.
On my main form, I have a combo box, and in its After Update event, I have
code to execute an append query.
It is intended as a one-time thing, to run when a new record is created, but
I just realized that it is easy to trigger this more than once, which then of
course messes up the database.
How can I ensure that the append operation is run only once?
Is there a way to check if the two tables that records are appended to
already have records with the main table's ID?
The target table/s have the following fields:
Table-specificID, MainTableID, CategoryID, and a few data fields.
Thank you.