I have multiple SQL stored procedures (e.g. UPDATE, SELECT INTO statements) executed in VBA in MS Access:
CurrentDb.Execute “qry1”
CurrentDb.Execute “qry2”
I want it so that:
* if qry2 fails, it will undo qry1.
* qry1 and qry2 are executed at the same time, (as I have many of these stored procedures executed in a chain), so the procedure runs faster.
How can this be done?
Transactions may suit, they allow rollback: http://msdn.microsoft.com/en-us/library/bb243155.aspx
EDIT
Here is a rough example in DAO:
Here are some rough notes for ADO: