yasanthax
asked on
Access Vba find auto number
I am trying to find a search work which describes the scenario of running code but have not been successful
Scenario :
Insert a new row into a table
Retrieve auto number from above and insert this value from above .
There are no unique record except for time stamp . Do I use some Dbo code that can record the auto number recorded in the first insert by simply using Dbo commands . I am sure I have used it before but have lost my work .
In addition what syntax would you use to wrap the code so no inserts are partially done and if so it will roll back both inserts .
Thanks
Scenario :
Insert a new row into a table
Retrieve auto number from above and insert this value from above .
There are no unique record except for time stamp . Do I use some Dbo code that can record the auto number recorded in the first insert by simply using Dbo commands . I am sure I have used it before but have lost my work .
In addition what syntax would you use to wrap the code so no inserts are partially done and if so it will roll back both inserts .
Thanks
ASKER
Hi
Thanks i was looking for a code that would wrap two SQL inserts into a transaction .
Thanks i was looking for a code that would wrap two SQL inserts into a transaction .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No action taking from OP
Open in new window