P
paul.schrum
I am inserting a new record into a table and I want to get the primary
key value from the newly created record.
The table design is:
Field Name Type
unique_person_id Autonumber
id_rec Integer
The code will look something like this:
appendStatement = "INSERT INTO myTable (id_rec) VALUES " &
id_rec_var
DoCmd.RunSQL appendStatement
It is at this point that I want to know the value of unique_person_id
for the record that I just added. Can someone help me do this?
- Paul
key value from the newly created record.
The table design is:
Field Name Type
unique_person_id Autonumber
id_rec Integer
The code will look something like this:
appendStatement = "INSERT INTO myTable (id_rec) VALUES " &
id_rec_var
DoCmd.RunSQL appendStatement
It is at this point that I want to know the value of unique_person_id
for the record that I just added. Can someone help me do this?
- Paul