Hello,
I have a form that edits an Order. Each order has several OrderItems which are edited by a continous-form subform inside the main form. Each OrderItem also has several OrderItemsAddit ions which are edited from a pop-up form.
3 seperate tables:Orders,O rderItems,Order ItemsAdditions.
The big problem is that i need a way to undo all changes to an order. When clicking on the "Edit" button (data is locked before that), i save all OrderItems into a temporary table, same with all relevant OrderItemsAddit ions .
When pressing cancel, I delete all relevant OrderItems, and then insert all OrderItems from the temporary table.
Now when i do the same for OrderItemsAddit ions, because the OrderItems ID has changed, the link between the additions and the orderitems goes away.
Because the orderitems are edited on a subform, and in a continuos sub-form, i found no way of undoing changes through access (since the records gets saved instantly).
ID's in all tables are autonumber.
Any ideas?
I have a form that edits an Order. Each order has several OrderItems which are edited by a continous-form subform inside the main form. Each OrderItem also has several OrderItemsAddit ions which are edited from a pop-up form.
3 seperate tables:Orders,O rderItems,Order ItemsAdditions.
The big problem is that i need a way to undo all changes to an order. When clicking on the "Edit" button (data is locked before that), i save all OrderItems into a temporary table, same with all relevant OrderItemsAddit ions .
When pressing cancel, I delete all relevant OrderItems, and then insert all OrderItems from the temporary table.
Now when i do the same for OrderItemsAddit ions, because the OrderItems ID has changed, the link between the additions and the orderitems goes away.
Because the orderitems are edited on a subform, and in a continuos sub-form, i found no way of undoing changes through access (since the records gets saved instantly).
ID's in all tables are autonumber.
Any ideas?
Comment