R
RogB
Guest
Rollback not working (Resolved)
I am developing an order system in Access 97.
The system requires users to enter data in a succession of forms each linked to their own table but updating some main tables when a "Next" button is clicked.
I want to use transaction processing so there is no chance of partial orders being left in the main tables if the user exits mid order of the system crashes (admittedly unlikely but !).
I have created a workspace (wsp) and use the statement "wsp.begintrans" before the first update occurs.
I'm using "wsp.committrans" after all the updates have been done, immediately before the final form is opened.
On each form there is a "Cancel" button which activates a "wsp.rollback" command.
The transaction processing works if the application is closed mid order but for some reason the rollback commands don't do anything when a cancel button is clicked on one of the forms.
There are no error messages and in debug view execution passes through the statement in the normal way.
I am a bit stumped by this and am wondering if anyone has any suggestion as to why it's not working?
Thanks
Roger
I am developing an order system in Access 97.
The system requires users to enter data in a succession of forms each linked to their own table but updating some main tables when a "Next" button is clicked.
I want to use transaction processing so there is no chance of partial orders being left in the main tables if the user exits mid order of the system crashes (admittedly unlikely but !).
I have created a workspace (wsp) and use the statement "wsp.begintrans" before the first update occurs.
I'm using "wsp.committrans" after all the updates have been done, immediately before the final form is opened.
On each form there is a "Cancel" button which activates a "wsp.rollback" command.
The transaction processing works if the application is closed mid order but for some reason the rollback commands don't do anything when a cancel button is clicked on one of the forms.
There are no error messages and in debug view execution passes through the statement in the normal way.
I am a bit stumped by this and am wondering if anyone has any suggestion as to why it's not working?
Thanks
Roger
Last edited: