Solved

Form with a subform - rollback changes

Posted on 1998-10-26
2
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

729 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