Solved

Undo changes using ADODC

Posted on 1999-01-20
2
241 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

751 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