Solved

Canceling Update

Posted on 2001-07-12
3
183 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now