Solved

Undo changes using ADODC

Posted on 1999-01-20
2
224 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
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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

770 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