?
Solved

Canceling Update

Posted on 2001-07-12
3
Medium Priority
?
189 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 1200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…
Suggested Courses
Course of the Month7 days, 20 hours left to enroll

765 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