R
rich
Hello
I am trying to get an understanding of how Access handles transactions.
In my application, I have a couple table for "tracking" transactions. For
instance, consider you are adding a new employee, updating employee record,
or terminating an employee. Adding a new employee involves creating the
initial record. Along with that, I need to track this as a transaction so it
can be audited/reported on later.
Given that example, how do you perform the insert query to create the
initial employee record (query #1) AND perform an insert to the
tracking/auditing table (query #2) so they are treated as 1 transaction (that
is if either fails, they are both rolled back)?
I think in this situation, I should be using ADO and coding the actual SQL
statements myself, rather than relying on this via the forms. Please advise
if this is the correct line of thought, especially since little or nothing on
the employee forms would go to the auditing/tracking table.
Hopefully, I provided sufficient details for you. Please let me know if
more details are needed. Any references to sample code or documentation
would be greatly appreciated.
TIA,
Rich
I am trying to get an understanding of how Access handles transactions.
In my application, I have a couple table for "tracking" transactions. For
instance, consider you are adding a new employee, updating employee record,
or terminating an employee. Adding a new employee involves creating the
initial record. Along with that, I need to track this as a transaction so it
can be audited/reported on later.
Given that example, how do you perform the insert query to create the
initial employee record (query #1) AND perform an insert to the
tracking/auditing table (query #2) so they are treated as 1 transaction (that
is if either fails, they are both rolled back)?
I think in this situation, I should be using ADO and coding the actual SQL
statements myself, rather than relying on this via the forms. Please advise
if this is the correct line of thought, especially since little or nothing on
the employee forms would go to the auditing/tracking table.
Hopefully, I provided sufficient details for you. Please let me know if
more details are needed. Any references to sample code or documentation
would be greatly appreciated.
TIA,
Rich