?
Solved

Undo changes using ADODC

Posted on 1999-01-20
2
Medium Priority
?
255 Views
Last Modified: 2013-12-25
I want to enable undoing of all changes to bound controls on a form. I believe the UpdateControls method would accomplish this but there is no UpdateControls method for ADODC.  How do I do this?
0
Comment
Question by:adamsp
[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
 

Accepted Solution

by:
omrire earned 50 total points
ID: 1499245
In order to cancel updates you can use a updateBatch lock type of the ado recordset.
When you are opening a Ado Recordset with this type you update the data to the database only when you invoke the updateBatch Method and you can use the CancelBatch Method to undo the changes.

0
 

Author Comment

by:adamsp
ID: 1499246
The answer addresses how to cancel and update, so far so good. However, the answer says nothing about how to Undo any changes the user may have made to the controls on the form.  Also, is there some reason why the CancelUpdate method does not apply?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

719 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