Solved

Form with a subform - rollback changes

Posted on 1998-10-26
2
220 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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…

747 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