IF else vb after combo box selection

stumanchu

New Member
Joined
Nov 17, 2006
Messages
26
On a form, I have a 2 combo boxes. One lists EquipmentName, the other Procedure rooms. 2 pieces of equipment are each stationary in its own procedure room. I want to be able to auto fill the procedure room only when either piece of equipment is chosen. For example, if equipment "Fluoro Rm #2" is selected, only fill procedure room "Fluoro room #2", if equipment "Fluoro Rm #4 is selected, only fill procedure room "Fluoro room #4", if any other piece of equipment is chosen, then the other procedure rooms are available to select.

2 tables:
EquipmentTbl & ProcedureRoomTbl

I'm sure VB is invovled - perhaps On Exit event on equipment name?

Thank you for any suggestions
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi, thank you for replying. I found a solution: I could disable one combo box if a particular selection is made in the other combo box & vice versa. It works, but may not be the best solution. I will read up on the link you sent. I appreciate your help.
 
Upvote 0
You shouldn't need to have multiple combos for this; two would suffice, unless I misunderstood.
Basically, the first combo is selected and that restricts the choices from the second. Make another selection in #1 and #2 updates with the new options.
See if this helps you.

Denis
 
Upvote 0

Forum statistics

Threads
1,223,104
Messages
6,170,124
Members
452,303
Latest member
c4cstore

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