473,408 Members | 1,746 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,408 software developers and data experts.

A97 removing value from textbox after CancelEvent (DMVFileNo_BeforeUpdate frmENF264ProcessingForm)

MLH
What's the best technique to remove a value entered
into a form's textbox control after halting the update of
the textbox with a docmd.cancelevent line in a before
update event procedure?

IE, say the user types 3 into the text box and presses
Enter. I prompt him saying "Are you sure? The previous
value was 2. Do you really wanna do this?" Say the
user chooses No - I abort the update of the control with
the cancelevent but the 3 remains in the control. I have
been sending an ESC with sendkeys. Just a single ESC,
that's all. Is that OK?
Nov 13 '05 #1
2 2236
MLH wrote:
What's the best technique to remove a value entered
into a form's textbox control after halting the update of
the textbox with a docmd.cancelevent line in a before
update event procedure?

IE, say the user types 3 into the text box and presses
Enter. I prompt him saying "Are you sure? The previous
value was 2. Do you really wanna do this?" Say the
user chooses No - I abort the update of the control with
the cancelevent but the 3 remains in the control. I have
been sending an ESC with sendkeys. Just a single ESC,
that's all. Is that OK?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Use:

Me!ControlName.Undo

for controls on the same form that you are issuing the cancel event
command.

Or, for controls on a different form that were the cancel event command
is issued:

Forms!FormName!ControlName.Undo

Substitute the real form/control name in the proper place.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA+AwUBQvJZw4echKqOuFEgEQJBkgCg/IJnXcNNRvHOCMU+OQV56AxORfYAmL9d
xz+HjbzC24kA7W99IzbXr3A=
=7eI/
-----END PGP SIGNATURE-----
Nov 13 '05 #2
MLH wrote:
What's the best technique to remove a value entered
into a form's textbox control after halting the update of
the textbox with a docmd.cancelevent line in a before
update event procedure?

IE, say the user types 3 into the text box and presses
Enter. I prompt him saying "Are you sure? The previous
value was 2. Do you really wanna do this?" Say the
user chooses No - I abort the update of the control with
the cancelevent but the 3 remains in the control. I have
been sending an ESC with sendkeys. Just a single ESC,
that's all. Is that OK?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Use:

Me!ControlName.Undo

for controls on the same form that you are issuing the cancel event
command.

Or, for controls on a different form that were the cancel event command
is issued:

Forms!FormName!ControlName.Undo

Substitute the real form/control name in the proper place.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA+AwUBQvJZw4echKqOuFEgEQJBkgCg/IJnXcNNRvHOCMU+OQV56AxORfYAmL9d
xz+HjbzC24kA7W99IzbXr3A=
=7eI/
-----END PGP SIGNATURE-----
Nov 13 '05 #3

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

Similar topics

0
by: MLH | last post by:
What's the best technique to remove a value entered into a form's textbox control after halting the update of the textbox with a docmd.cancelevent line in a before update event procedure? IE,...
10
by: MLH | last post by:
Would like to examine the value entered into a textbox on an A97 form during the BeforeUpdate event. The textbox may or may not have had an earlier entry in it prior to the latest value that is...
66
by: Cor | last post by:
Hi, I start a new thread about a discussion from yesterday (or for some of us this morning). It was a not so nice discussion about dynamically removing controls from a panel or what ever. It...
10
by: Jane Sharpe | last post by:
Hi, I have a textbox with the words "Enter your name here" inserted as default text - At the moment, to remove this the user must highlight all the text and delete before they type in their name...
6
by: MLH | last post by:
Using A97. Want to examine 17-char VIN entered by user. VIN codes are alphanumeric and do not contain Oh's to prevent the confusion that could result if zeros were misread as O's or o's. So, if...
6
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or...
7
by: David Lozzi | last post by:
Howdy, I have a shopping cart in my arraylist. Works great for adding items but I'm displaying the shopping cart in a gridview and the user can update the qty of the items. If they set it to 0,...
0
by: Henrootje | last post by:
Hello there! I have an access application which is controlled by a custom menubar. This bar is controlled by commands like: CommandBars("CustomBar").Controls(1).Controls(2).Controls(3).Visible...
6
by: MLH | last post by:
I have a form, frmUSPSReturnReceipts, with a control named NotExpectingGreenTickets. The control's Exit event procedure follows: Private Sub NotExpectingGreenTickets_Exit(Cancel As Integer) If...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.