472,342 Members | 1,438 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Populating text box based on combo box selections

I have a form that contains two combo boxes that are related to each other. I
need to find a way to populate my text box based on the criteria of the two
combo boxes so the appropriate number appears in the text box.

Oct 10 '07 #1
2 4501
"SHAWTY721" <u38136@uwewrote
I have a form that contains two combo boxes that
are related to each other. I need to find a way to
populate my text box based on the criteria of the two
combo boxes so the appropriate number appears in
the text box.
It's just not possible to be very helpful with the information you provided
(Which was certainly concise, but certainly was not precise, you know --
what does "populate my text box based on the criteria of the two combo boxes
so the appropriate number appears in the text boxes" mean? All it says is
there is some kind of relationship between the controls and implies that the
Text Box contents are numeric.).

You will have to have some way to ensure that you do not set the text box
until you have made a selection in both Combo Boxes (and that presumes that
by "criteria", you simply mean the values selected in the Combos). One way
is to lock the second Combo Box, and only unlock it in the After Update
event of the first, then put your code to set the Text Box in the After
Update event of the second Combo... and once you set it, lock them again, as
in the beginning.

But, as to setting the Text Box, we'd only be guessing.

For good suggestions on effective use of newsgroups, see the FAQ at
http://www.mvps.org/access/netiquette.htm. You have to help us help you.

Larry Linson
Microsoft Access MVP
Oct 10 '07 #2
On Oct 10, 12:11 pm, "SHAWTY721" <u38136@uwewrote:
I have a form that contains two combo boxes that are related to each other. I
need to find a way to populate my text box based on the criteria of the two
combo boxes so the appropriate number appears in the text box.
It is all about "when". If this is a data entry screen, and a textbox
is dependent on two combo boxes, then a function has to be called when
the data in either of the two combo boxes is changed. This function
must test for data in both comboboxes and update the textbox
appropriately.

Oct 10 '07 #3

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

Similar topics

0
by: Jim | last post by:
Hi, there, I am a beginner on Access. I have been taking so long time to try to figure out his, but so far, no clues. I want to select 2...
14
by: Norm | last post by:
Hi, Each time the user selects an item from a combobox, I want that string to get appended to the values that were already selected. The result...
2
by: David | last post by:
Hi, This is probably really simple but kinda has me stumped. I have taken over a data base and am looking to modify it to make it more user...
2
by: Nick Douglas | last post by:
I have a form with several combo boxes. What I want to do is limit the selections available in each combo box based on the selections in the other....
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from...
1
by: Meaney | last post by:
Hi, I have a form with 4 combo boxes. They are used for selecting SchoolName (lists 28 names), LocationName (lists 4 geographic locations),...
6
by: BerkshireGuy | last post by:
On an unbound form, I have a combobox called 'cboproducttype' and a text box called 'txtamountappliedfor'. I have an Add button that I would like...
2
by: Dave | last post by:
I have 3 tables of information feeding into 4 combo boxes on my main form (DR Form). I have as many list boxes (acting as text boxes) as there are...
6
by: bammo | last post by:
MS Access 2003, Windows XP SP2, VBA I have a continuous form that allows edits and filters, but not deletions or additions. I filter the form...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.