Solved

Canceling Update

Posted on 2001-07-12
3
187 Views
Last Modified: 2008-03-06

I have a form bound to an command in my data enviroment. I have a Cancel button on the form where I cancel the update of the underlying recordset like this:

envSQL.rscmdAdmissions.CancelUpdate

The problem is I have serveral grids (Janus Grids) that are bound to child commands.  Even if I do the above CancelUpdate command the data in the database bound to the grids still remains changed.  

How do I keep the data bound to the grids from changing when I want to cancel the entire data entry session?

0
Comment
Question by:bfeddish
[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
3 Comments
 
LVL 4

Expert Comment

by:eeyore7250
ID: 6279144
You could setup a temp recordset and store records there until you are ready for them to be put into the master database!
0
 
LVL 1

Author Comment

by:bfeddish
ID: 6279156
This is the direction I was thinking of going. Could you go inot a little more detail as to how you would do this?

Thanks,
Bryan
0
 
LVL 17

Accepted Solution

by:
inthedark earned 300 total points
ID: 6279201
It could be a cse for Clone.  I don't use it much and I forget its there.

Dim KeepMeForLater As Recordset

Set KeepMeForLater = MyObject.RecordSet.Clone

I use the other approach which is to not change the live database until the Operator clicks on Save.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

726 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