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

Populating a form's text box based on that input in another text box

I have a form that asks for the input of "Postal Code" in a Zip Code format using the mask (00000\-9999;;_).
There is another text box called TAXCODE that I would like to Autopopulate based on the first five digits of the postal code.
The source of the population is from the Table called TAXTABLE. This has two fields: ZIPCODE and TAXCODE.
Not all of the Postal Codes are found in the TAXTABLE. In those instances the form's TAXCODE should remain blank. Where the first five digits of Postal Code appear in the field ZIPCODE, I would like to autopopulate TAXCODE with the associated value found in the Table's TAXCODE field.
I envision using an AFTERUPDATE EVENT for the Postal Code field on the form. I also assume I need to incorporate an If statement that would leave the box blank if the record is not found, and a set value directive if it is found.
Can anyone help me with the appropriate language?
Again, the form's text boxes are Postal Code and TAXCODE.
The table's fields are ZIPCODE and TAXCODE.
Thanks for the support. I am running way over deadline on completing this project.
Aug 4 '10 #1
2 1340
Guido Geurs
767 Expert 512MB
Please attach the XLS file in BYTES so we can see what You have and what You want exactly.
If possible, attach also an example of what the end-result must be
Aug 8 '10 #2
Sorry about the miscommunication, this should have been in the MS ACCESS sector.
Thanks for the offer of assistance.
Aug 10 '10 #3

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

Similar topics

3
by: Pjotr Wedersteers | last post by:
Hi I am not even sure if it is at all possible, and I can't find the stuff I am looking for, probably using the wrong search keys. WAMP machine (XP, 2.50.2, 4.1.5, 5.0.2) I have a field in...
2
by: sebastien | last post by:
Hi, What does this always jumps to another page when I try to asign text in the input type text : titel <form id="formie" name="formie" method="post" action="/staff/news/news.php"> <input...
2
by: Matt MC | last post by:
How would I put this together so, <input name="input1" type="text"> <input name="input2" value="whatever is typed into input1" type="text"> I would like to be able to type something in...
1
by: John Hargrove | last post by:
I am building a database to manage test samples in an environmental laboratory. I am learning Access as I go and don't know much about the programming aspects. I hope to make the application...
2
kamill
by: kamill | last post by:
i need to write content of one text file into another text file. My code is working ,if i choose both files from same directory where my program reside..BUT,its not working if i select files from...
4
by: javacrazy | last post by:
This is my code and I was wondering if anybody could tell me why nothing happens when I click on the "Submit" button. <HTML> <HEAD> <TITLE>Hmm</TITLE> <SCRIPT LANGUAGE="text/javascript"> //...
5
by: Markw | last post by:
Hello Folks, It's your new mysql and php user looking for some more help. Background: I'm attempting to develop an online SCUBA Diving Log application. My plans are to put it together in pieces...
3
by: Mefistofeles | last post by:
Hello. Need help to make text-based radio buttons. On my calender site I want to have text that works like radio buttons. Exampel, bold text is the selected radio-text. Jan Feb Mar Apr May...
23
by: angelicdevil | last post by:
wat i m trying to do is delete a line from the xml based on the line generated i.e $mybody dynamically from the values entered by the user. in the code i provide...it simply adds a line...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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.