I am trying to use vba to create an empty record in a table, so it will generate an id in the autonumber field. Then I want to get that number so I can use it to update a mapping table.
I have:
rst.addnew
rst.update
How can I get the unique id of the record that was created. I don't want to use dmax() because multiple people might be entering records simultaneously. I want a way to ensure that it is the id of the record that was just added.
Any Ideas?
I have:
rst.addnew
rst.update
How can I get the unique id of the record that was created. I don't want to use dmax() because multiple people might be entering records simultaneously. I want a way to ensure that it is the id of the record that was just added.
Any Ideas?