473,408 Members | 2,888 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.

Message Box Prompt

12
I have a field named EMP_AMT_DED and I need for the amount entered into the text box to be 1250.00 and if the amount is anything less, I need a message box that prompts the user to explain why in the deduction history memo box. Once the user clicks OK on the prompt, I need to setfocus to the memo box. Simple but I can't think of it right off.

Thanks for any help...
Feb 13 '07 #1
6 6002
Michael R
176 100+
I have a field named EMP_AMT_DED and I need for the amount entered into the text box to be 1250.00 and if the amount is anything less, I need a message box that prompts the user to explain why in the deduction history memo box. Once the user clicks OK on the prompt, I need to setfocus to the memo box. Simple but I can't think of it right off.

Thanks for any help...
You can use the Validation Rule proprety that is in field's control propreties. Set it to
=1250.00
Use Validation Text proptery for message box pop-up explanation.
Feb 13 '07 #2
CSmith
12
You can use the Validation Rule proprety that is in field's control propreties. Set it to
=1250.00
Use Validation Text proptery for message box pop-up explanation.
I am not clear on how to do that. In the validation rule box, the expression builder opens. Can you give me specific steps on how to perform what you suggest I do.
Feb 13 '07 #3
CSmith
12
You can use the Validation Rule proprety that is in field's control propreties. Set it to
=1250.00
Use Validation Text proptery for message box pop-up explanation.
I think I have it Michael, thanks alot for the suggestion
Feb 13 '07 #4
CSmith
12
You can use the Validation Rule proprety that is in field's control propreties. Set it to
=1250.00
Use Validation Text proptery for message box pop-up explanation.
Ok, another problem, when the amount is entered and it is less than 1250.00 I want the field to keep whatever value is entered I just want an explain in the memo box. The way it is set up now, it won't allow the field to keep the entry.
Feb 13 '07 #5
Michael R
176 100+
Ok, another problem, when the amount is entered and it is less than 1250.00 I want the field to keep whatever value is entered I just want an explain in the memo box. The way it is set up now, it won't allow the field to keep the entry.
Ah, I see. So you shoudn't use validation rule as its function is to block enteries that are not in a certain creteria.

Go to the textbox Propreties, to the Event tab. Go to After Update row. A "..." button will show up, click on it. A VBA window will open. Make sure the following code is there:

Expand|Select|Wrap|Line Numbers
  1. Private Sub yourtextboxname_AfterUpdate()
  2.     If Me.yourtextboxname.Value = 1250 Then MsgBox "your message here"
  3. End Sub
Close the VBA window and try out the form.
Feb 13 '07 #6
NeoPa
32,556 Expert Mod 16PB
You'd also need to use the .SetFocus() method of the Memo control.
Feb 14 '07 #7

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

Similar topics

2
by: Hank | last post by:
Hi, does anyone know how to change the foreground color of the command prompt through python? For example if i was printing out an error message, I would like it to be red where the normal...
13
by: JSE | last post by:
Hello everyone. here's what we have in an html file. <form ..... <input type=button name="comment" onclick=" prompt('enter comment',' ' )" > Is there anyway to get the value...
3
by: sancha | last post by:
Hi, I need to promt the user when he moves away from the page by clicking an of the links available on the page. I was trying to use the onbeforeunload function but it seems it is a jScript...
3
by: Rog | last post by:
Yes, I am guessing that typing cmd in the run windows will bring up the command prompt, but not the vs.net command prompt. Is there a switch(s) for accessing the vs.net command prompt? Or...
4
by: glenn | last post by:
I keep reading all sorts of books on VS that keep telling me to click on Tools/Visual Studio Command prompt to run this program or that program. However, I do not have such a menu choice. Where is...
3
by: J.P. Cummins | last post by:
In my ASP.NET application, I wish to have a page for administrators to edit items in a list. Preferably, I would like to use the javascript prompt for the 'rename' function, and a javascript alert...
1
by: Jay Feldman | last post by:
I've seen some messages about the screen flashing black for a few moments when executing a program in vb.net this may be because the command prompt settings were changed. when the command prompt...
4
by: ARC | last post by:
Hello all, I didn't use to have this problem in Access 97, but in 2007 (and maybe other versions of access after 97), if you have a form that has a subform, and you click the close button, you...
1
by: ramprakashjava | last post by:
hi , i hav this error while running this customerDetails.jsp <html:html> <head> <html:base/> </head> <body> <html:errors/> <html:form...
1
by: cruzzer | last post by:
I need to know how can I exclude a data item from the Alert Window’s list message if the user leaves a prompt window blank. Example : If the user types a value to both “idnumber” and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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,...
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...

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.