Solved

Form with a subform - rollback changes

Posted on 1998-10-26
2
223 Views
Last Modified: 2008-02-01
I have a form with a subform and buttons "Ok" and "Cancel". "Ok" button behaviour is obvious. But when the user enters the subform, Access saves the record from the main form. Is there any way to organize rolling back without using temporary tables or arrays ?
0
Comment
Question by:shvetsov
2 Comments
 
LVL 10

Expert Comment

by:brewdog
ID: 1966812
I'm assuming these are bound forms. I don't know of any way, other than temporary tables, to do this with bound forms. With unbound forms, you can create a WorkSpace object and do a BeginTrans and then either a CommitTrans or a Rollback at appropriate points.

brewdog
0
 
LVL 4

Accepted Solution

by:
tomook earned 100 total points
ID: 1966813
No way with bound forms. Access commits the changes when it saves. If you need to do this, you must use unbound forms or temporary tables.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now