Data from ComboBox in TextBox via DB Query

cellulargnome

New Member
Joined
Mar 30, 2017
Messages
15
OK, I'd love to say I've had a go at this but to honest I don't even know where to start with the text boxes.

I have a combo box populating it's items from an Access database, This i'm doing using getrows and it populates fine.
The problem I have now is with the text boxes. Each row in the combo box is just the one column "EmployeeName" (It's a small list). Each row has other columns with data I want to display in text boxes but that where I get lost. So Column2 "BuildingName" would go in TextBox1 and column3 "EmployeeExtension" would go in TextBox2. I need this to change as the combo box selection changes. I thought about just creating a form within the Access database but not all pc's have Access installed, plus I'd rather not have to leave the Excel file.

Many thanks in advance

CG
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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