Hi
I have a macro plus some VBA code, which imports moves data around a database, imports a spreadsheet, then performs a few more related data tidy ups within the Access database.
Is there a way to run a transaction over all of this so that if something goes wrong, everything wll be rolled back? For example, if the import of the spreadsheet is rejected due to a bad field, can I roll back the first data changes ?
I have a macro plus some VBA code, which imports moves data around a database, imports a spreadsheet, then performs a few more related data tidy ups within the Access database.
Is there a way to run a transaction over all of this so that if something goes wrong, everything wll be rolled back? For example, if the import of the spreadsheet is rejected due to a bad field, can I roll back the first data changes ?