Display data from 2nd table column,by picking option in 1st?

Novice

Board Regular
Joined
Mar 18, 2003
Messages
53
Hi
I have a combo box drop down list allowing a user select a part. This drop down list is the first of two columns in a table.
I would like to have another text box in the same from that will automatically display the item in the second column of the table that is on the same row as the part selected.
I'm sure there is an easy way to do this but have not found it yet.
Thks
Novice
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Re: Display data from 2nd table column,by picking option in

Use the ON EXIT event in the 1st cboBox to trigger the query to update the contents of the 2nd cboBox. Also, use the enable\disable to make the second cboBox disabled until the 1st cboBox receives some event, and vice-versa.

This will force data integrity for the queries.

Place cboBox(s) on FORM | {use wizard to set-up} | Right Click on CONTROL | choose PROPERTIES | click EVENT tab | build EVENT PROCEDURE for your queries.




HTH...Toad
 
Upvote 0

Forum statistics

Threads
1,221,532
Messages
6,160,381
Members
451,643
Latest member
nachohoyu

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