473,625 Members | 3,064 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A97 removing value from textbox after CancelEvent (DMVFileNo_Befo reUpdate frmENF264Proces singForm)

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.canceleve nt 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 2247
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.canceleve nt 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.Und o

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

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

iQA+AwUBQvJZw4e chKqOuFEgEQJBkg Cg/IJnXcNNRvHOCMU+ OQV56AxORfYAmL9 d
xz+HjbzC24kA7W9 9IzbXr3A=
=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.canceleve nt 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.Und o

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

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

iQA+AwUBQvJZw4e chKqOuFEgEQJBkg Cg/IJnXcNNRvHOCMU+ OQV56AxORfYAmL9 d
xz+HjbzC24kA7W9 9IzbXr3A=
=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
297
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, 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...
10
2292
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 now in the process of being entered. What's the best way to refer to the value just typed that is about to update the textbox?
66
4104
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 started by an example from me, that was far from complete and with typing errors, but basically it had the meaning to show that removing controls reversible was the nicest method. This was a lets say conclusion (but what is that in a newsgroup) in a...
10
9020
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 - I've seen sites where all this text dissapears as soon as the user clicks on it - how do I do that ? Thanks Jane
6
4228
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 a user types a 17-char VIN into the textbox that has an Oh in it (lower or upper case) - I would like to change it to a zero during the BeforeUpdate code. So far, I've not been able to accomplish this. I can examine
6
6099
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 more minutes. 'REMOVE DUBLICATED VALUE FROM ARRAY +++++++++++++++++ Dim col As New Scripting.Dictionary Dim ii As Integer = 0
7
2631
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, then I want to remove it. I'm doing the following script: For Each ele In bag Dim qty As Integer = CType(gvBag.Rows.Item(cnt).FindControl("txtQty"),
0
1225
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 = True / False I also have a function that is called on the NoData event of a report. (Properties of report - Events - No data NoDataCL() )
6
7719
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 IsNull(Me!NotExpectingGreenTickets) Then DoCmd.CancelEvent Exit Sub End If End Sub
0
8696
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8502
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7188
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6119
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5571
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4090
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1504
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.