Get a text box to auto populate in a form

xsnd47

New Member
Joined
Oct 1, 2004
Messages
11
Is it possible for me to have a box auto-populate anywhere in a form? I am trying to build a form where an item number can be entered and I would like for the description of the item to pop up below the item id. I am certain it can be done, but am sure of how to do so. I've built the query that loods up the item number and compares it to a list of descriptions.

Thank you in advance
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Depending on what you use the form for, you may not actually need to see the ID number -- maybe the description would be more useful, with the ID being automatically selected.
This is what combo boxes do. If you haven't built one before, use the Wizard. Here's the process:

1. In Design view on the form, with the Wizard activated, click the Combo Box icon and then click on the form. The Wizard will launch.
2. When asked whether you want to build your own list or use values from a table or query, select the latter.
3. Scroll through the list of tables and queries, find the one that has the ID and Description, or just open the Table that contains both fields.
4. First field will be the ID, second field will be the Description. Opt to Hide Key Field.
5. When asked whether to store or keep for later use, select Store. From the list, pick the ID field.
6. Give the combo a caption. OK to save, then see how it works.

Once you're happy, delete the original text box and put the combo in its place.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,829
Messages
6,162,229
Members
451,756
Latest member
tommyw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top