473,385 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Reset an Undo

On a form, I create a record and save, and am ready to enter another.
I decide to Quit the form which executes an "Undo" in case there is
data entered. This then tries to "delete" my just saved record.

I want to "Reset" my Undo ability once I've saved a record. Is there a
way to reset the Undo?

Any help or tips would greatly help. I'm looking for syntax and
attachment points.

Cheers,
Leslie

Nov 13 '05 #1
2 1872
In whatever event you are using to perform your "undo", test if the form is
Dirty first:

If Me.Dirty Then
If MsgBox("Undo?", vbYesNo+vbDefaultButton2) Then
Me.Undo
End If
End If

Perhaps the real solution might be not to dirty the form as soon as you move
to the (new?) record.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Leslie" <le*****@oregonaero.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
On a form, I create a record and save, and am ready to enter another.
I decide to Quit the form which executes an "Undo" in case there is
data entered. This then tries to "delete" my just saved record.

I want to "Reset" my Undo ability once I've saved a record. Is there a
way to reset the Undo?

Any help or tips would greatly help. I'm looking for syntax and
attachment points.

Cheers,
Leslie

Nov 13 '05 #2
Allen,

Thank you very much. I think you have the answer I'm looking for. I
had been looking at the "Dirty" option, but I was unsure of how to
execute it with the Undo. I think your suggestion will work well with
what I'm trying to do. Sometimes you just need to banter stuff with
folks and then the light comes on.

I was hoping there was an Undo.Reset or Undo.Init or something like
that that I could put at the end of my save, but your solution seems
like it will work just fine.

I will give it a try on Monday when I return to work. Thank you.

Cheers,
Leslie

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ryan Stewart | last post by:
Is there a way to reset the style property of an HTML element to some default or to all empty values? I have a group of elements whose style settings may be changed arbitrarily at certain points in...
2
by: Lyn | last post by:
Hi, I have a text control on a form which is bound to table field StartDate which is in Date format. When updating the table record via the form, any data entered into the StartDate control is...
3
by: babylon | last post by:
any facilities in csharp that can help me implmenting undo/redo in my application? thx
1
by: Andy Fish | last post by:
Hi, Given a control on a form with viewstate enabled, is there any way to reset the control to it's default values (i.e. undo any viewstate settings). I guess I could disable viewstate...
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...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, Does vb2005 have a built-in UnDo feature / object for applications so that I can undo actions like other windows apps? Or do I have to write my own UnDo routine? If vb2005 does have a...
16
by: Giovanni D'Ascola | last post by:
Hi. I noticed that <input type="reset"actually don't enable checkbutton which are checked by default after they have been disabled by javascript. It's a bug?
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...
1
by: Jeremy | last post by:
I'm working on an application that does some DOM manipulation. I want to add a mechanism for "Undo" so that the user can revert to the previous state after performing a mistaken action. Simple...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.