Why my textbox wont populate past column 1

beanhead0321

New Member
Joined
Jul 8, 2011
Messages
14
I have a form with a combo box and a textbox. I have entered the following code in the after update of the combo box.

Code:
Private Sub Combo12_AfterUpdate()
Me.Text24 = Me.Combo12.Column(1)
End Sub

This works, but if I have the data I want in column 2 or higher in the query under my combo box, my textbox won't display anything. Why is this happening?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Are you selecting the right column number? I believe the column numbers start with zero. The first column to the left is zero, the second is one, etc.

Alan
 
Upvote 0
You also have to set the combo's COLUMN COUNT to the number of columns in the row source for them to show up. If you just left it at the default of 1 then the second wouldn't show up at all. Go change it to 2.
 
Upvote 0
Got the problem fix! Thanks guys!

Wait, nope. Now all four columns are showing up in my combo box when it drops down. Is there a way to only have one show up but have the others populate their respective textboxes? I tried unchecking the show, but then it just completely takes off the whole column.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,242
Members
452,898
Latest member
Capolavoro009

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