J
John
Hello All,
I need some help with an issue I am having that is causing duplicate
IDs to be inserted into my data table.
I have a form that is linked to a SQL table and connected to a form
where users add new tasks. When the form loads it is running this
code to get the next ID number from the table. Me!ID.DefaultValue =
Nz(DMax("[ID]", "[HPRA_Reimb Mgmt Activity Log]")) + 1
If two users open the form at the same time or close to the same time
and enter records there are two entries put into the backend table
with the same ID number.
How do I get the form to save the record to the table when the form is
opened so if someone opens the form right after another person they
get the next ID number and not the same one?
Any and all help is appreciated.
Thanks,
~John
I need some help with an issue I am having that is causing duplicate
IDs to be inserted into my data table.
I have a form that is linked to a SQL table and connected to a form
where users add new tasks. When the form loads it is running this
code to get the next ID number from the table. Me!ID.DefaultValue =
Nz(DMax("[ID]", "[HPRA_Reimb Mgmt Activity Log]")) + 1
If two users open the form at the same time or close to the same time
and enter records there are two entries put into the backend table
with the same ID number.
How do I get the form to save the record to the table when the form is
opened so if someone opens the form right after another person they
get the next ID number and not the same one?
Any and all help is appreciated.
Thanks,
~John