combobox/textbox

mcarter973

Board Regular
Joined
Mar 24, 2002
Messages
83
in a user form, i would like the textbox to populate w/ the item chosen from the combobox - this is what i have so far:

1. tblBrokerList w/ two fields: BrokerList and Group
2. qryBrokerList (same info as above just sorted on BrokerList).
3. user form w/ Broker combobox (cboBroker) - rowsource is qryBrokerList
4. user form w/ Group textbox (txtGroup)

Private Sub cboBroker_AfterUpdate ()
txtGroup = cboBroker.Column(1)
End Sub

I'm fairly new to Access, what am I missing? Currently, the Group textbox is blank after choosing a Broker.

Thanks.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Assuming that your broker combobox is selecting the group that you want, just bind that to txtGroup rather than having a seperate textbox.

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,221,558
Messages
6,160,484
Members
451,651
Latest member
Penapensil

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