UnhandledException
Registered User.
- Local time
- Today, 04:03
- Joined
- Dec 11, 2009
- Messages
- 15
Does Access allow the use of a RETURNING clause?
I am trying to set up a Parent Child relationship.
When a new record is inserted into the Parent table, I now have to run a SELECT to fetch the newly created sequence number. Then a 2nd Insert is done to the Child table.
This would be 3 SQL statements, but if I could do an INSERT into the Parent table with a RETURNing clause to return the primary key field then I can simply do a 2nd INSERT into the Child table without the extra SELECT.
Is this possible with Access 2007?
I am trying to set up a Parent Child relationship.
When a new record is inserted into the Parent table, I now have to run a SELECT to fetch the newly created sequence number. Then a 2nd Insert is done to the Child table.
This would be 3 SQL statements, but if I could do an INSERT into the Parent table with a RETURNing clause to return the primary key field then I can simply do a 2nd INSERT into the Child table without the extra SELECT.
Is this possible with Access 2007?