paulette33
Technical User
Hi -
I have an Access 2002 database used to track changes. I have a form to add a record to that table. That form updates the data using an ADO connection. Currently, that table is structure with the change id as the primary key. The number is basically a number that is incremented, i.e. it goes to the database gets the last number and then adds 1 to it. That number is then displayed on the form for a new record. After all the data has been entered that number and the rest of the data is written to the table.
Here is my concern: Since the db is a multi-user db, I can see a scenario where someone is adding a new record at the same time that someone else is. Since the new ID number is not written to the table until they click save, both users will have the same id. Any thoughts on how to get around that? I have done some searches and looked through the FAQs. But, I'm just not sure what the best approach would be.
Thanks for your help!
I have an Access 2002 database used to track changes. I have a form to add a record to that table. That form updates the data using an ADO connection. Currently, that table is structure with the change id as the primary key. The number is basically a number that is incremented, i.e. it goes to the database gets the last number and then adds 1 to it. That number is then displayed on the form for a new record. After all the data has been entered that number and the rest of the data is written to the table.
Here is my concern: Since the db is a multi-user db, I can see a scenario where someone is adding a new record at the same time that someone else is. Since the new ID number is not written to the table until they click save, both users will have the same id. Any thoughts on how to get around that? I have done some searches and looked through the FAQs. But, I'm just not sure what the best approach would be.
Thanks for your help!