Form display based on item selected

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
I have a form that has a combo box that a user can select an item. What I want is after they make their selection I want it to show a name for what they selected.

For example the combo box has a a list of account number, so if they select #14 a text box would show the customer name - ABC Company. I'm sure I need to enter something in the event for "On Enter" but I have no idea how to write code.

Thanks ... texasalynn
 

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.
I'll first ask a dumb question if you have the account number is the account name not also part of the same table?

At any rate the two are related somehow, i would assume then in separate tables. If this is the case create a query(union/join) with both tables then use the query as the control source to your form instead. This will work but give more details if it doesn't.

List your fields for each table.


Ziggy
 
Upvote 0

Forum statistics

Threads
1,221,543
Messages
6,160,422
Members
451,644
Latest member
hglymph

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