473,471 Members | 4,095 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to undo any uncommitted changes

3 New Member
Hello all,
I have a DB that allows a user to choose fruit, also they have to choose a beginning date to search the table and also a fruit. Then in a subform they can put in details for the fruit. Like if they choose grapes then in the subform they can choose red grapes/green grapes/wine grapes/ ect.. But if they try to choose red grapes in the subform with out chooseing grapes, I am having the ap throw an error telling them that they have to put in a fruit and I set the focus in the fruit field. But the choice of red grapes and the location code of the grapes is still displaying in the sub-frm fields.

I want to undo the entry into the cboBox and the txt field. How do I roll that back? I have tried me.cancel = true and a few other things, but they are not working. I could just reset the controls, but this doesn't seem like a very good option. Thoughts?
Cheers,
tebule
Dec 14 '06 #1
1 1431
MMcCarthy
14,534 Recognized Expert Moderator MVP
Hello all,
I have a DB that allows a user to choose fruit, also they have to choose a beginning date to search the table and also a fruit. Then in a subform they can put in details for the fruit. Like if they choose grapes then in the subform they can choose red grapes/green grapes/wine grapes/ ect.. But if they try to choose red grapes in the subform with out chooseing grapes, I am having the ap throw an error telling them that they have to put in a fruit and I set the focus in the fruit field. But the choice of red grapes and the location code of the grapes is still displaying in the sub-frm fields.

I want to undo the entry into the cboBox and the txt field. How do I roll that back? I have tried me.cancel = true and a few other things, but they are not working. I could just reset the controls, but this doesn't seem like a very good option. Thoughts?
Cheers,
tebule
Try ...

Expand|Select|Wrap|Line Numbers
  1. Me.cboBoxName = Null
  2. Me.txtFieldName = Null
  3. Me.cboBoxName.SetFocus
  4.  
Mary
Dec 15 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: lbbs | last post by:
Will access allow you to undo more than one step. On mine it seams that you can only undo the last thing you did. In excel for example you can undo at least a dozen steps backwards. In...
6
by: Raji16 | last post by:
Hi, I am a new member. i am designing a simple judicial database system. however after creating tables i am a bit confused on setting the relationships between tables :confused: here is the link...
3
by: GoogleEyeJoe | last post by:
Dear ladies and gents, I'm trying to determine whether the .NET Framework implements a means of transactional processing without the need for a database. Essentially, I'd like to enlist...
2
by: Tomas | last post by:
Hi, I am a VB.NET newbie that would like to know the best practise when working with objects and undo user changes to objects properties. Problem The system allows the user to change...
7
by: call_me_anything | last post by:
Hi, I am looking for a good algorithm (in C/C++) for implementing undo/ redo on a data structure. The data structure is basically a n-children tree somewhat of the form : class /* or...
5
by: jmarcrum | last post by:
Hey everybody! I've created 2 buttons that I've placed on all my forms: a Save button & a Cancel button. The cancel button I have a question about. I used the wizard to create the button...
2
by: maxx429 | last post by:
Hi all, I am a VBA newb. I know probably just enough to be dangerous. :) Anyway, I have a Form that I am using <a href="http://allenbrowne.com/AppAuditCode.html">Allen Brown's Audit Trail</a> ...
0
by: wizard of oz | last post by:
Hi all, I'm extending an Abstract Styled Document associated with a JTextPanel to implement a syntax highlighting editor. This is all working just fine - except for undo / redo. The problem...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.