M
midnite oil
Hi,
Can anyone point to me where I can read up on and implement a form with
transaction rollback and commit for Access 2000.
I am in a situation where I have to fix someone's else design/code. There
is a Main form and a Subform (all forms controls bound to 2 tables) and Dirk
G. has in the past showed me how this Parent/Child form works - in that once
focus leaves main form, the record gets saved ! So, I spent a bit of time
working around to 'UNDO' an entry if user decides not to proceed with
entrying a new record so I am good for the NEW entry.
But for EDIT an existing record, here is my problem...
There is also a SAVE button on the form which all it does is to close the
form. There is a also a RETURN TO MAIN button which will close the form and
display the main menu form. So, the SAVE button is really quite redundant
since data entered is saved automatically as soon as form is closed. Either
button being clicked, the data will be saved no matter what. The QA people
is saying this SAVE button is misleading (I agree 100%). I think buttons
like 'Save and Exit' and 'Undo and Exit' are clearer to the users.
I now have to find a solution which won't costs me too much time that allows
the user to UNDO changes made, don't save the data if they wish not to and
exit the form. There are 2 other forms that have Parent/Child forms that
behaves similar and also a bunch others that have this SAVE button that does
nothing but close the form.
I found some information on Transaction and it won't work with Set
db=currentdb() - that's how the application opens the db everywhere in the
form.
I can think of taking snapshot of the data on form_load and if the user UNDO
changes, then I use this data to replace the values in the form and for the
Subform (depending on whether they have added or removed detail records) I
will remove all records and recreate with my snapshot data.
Would appreciate any feedback on how best I can implement an UNDO when
editing a record. Thank you in advance for helping.
Thanx
Can anyone point to me where I can read up on and implement a form with
transaction rollback and commit for Access 2000.
I am in a situation where I have to fix someone's else design/code. There
is a Main form and a Subform (all forms controls bound to 2 tables) and Dirk
G. has in the past showed me how this Parent/Child form works - in that once
focus leaves main form, the record gets saved ! So, I spent a bit of time
working around to 'UNDO' an entry if user decides not to proceed with
entrying a new record so I am good for the NEW entry.
But for EDIT an existing record, here is my problem...
There is also a SAVE button on the form which all it does is to close the
form. There is a also a RETURN TO MAIN button which will close the form and
display the main menu form. So, the SAVE button is really quite redundant
since data entered is saved automatically as soon as form is closed. Either
button being clicked, the data will be saved no matter what. The QA people
is saying this SAVE button is misleading (I agree 100%). I think buttons
like 'Save and Exit' and 'Undo and Exit' are clearer to the users.
I now have to find a solution which won't costs me too much time that allows
the user to UNDO changes made, don't save the data if they wish not to and
exit the form. There are 2 other forms that have Parent/Child forms that
behaves similar and also a bunch others that have this SAVE button that does
nothing but close the form.
I found some information on Transaction and it won't work with Set
db=currentdb() - that's how the application opens the db everywhere in the
form.
I can think of taking snapshot of the data on form_load and if the user UNDO
changes, then I use this data to replace the values in the form and for the
Subform (depending on whether they have added or removed detail records) I
will remove all records and recreate with my snapshot data.
Would appreciate any feedback on how best I can implement an UNDO when
editing a record. Thank you in advance for helping.
Thanx