Linking two Combo Boxes

ram_Sathish

New Member
Joined
Jun 12, 2006
Messages
15
Hi all,

I have linked two combo boxes called center number and investigator name.

If I hit a number 1 in the combo box called center number then it has to show me the Investigators who are belongs to that center, it should not show me the other Investigators. I got my answer.

But i want it should be more user friendly.

Because i have linked the second combo box by a query.

While entry the query ask to enter the parameter value. It is not taking the value which is already available in the combo box called center number. The operator has to reenter the center name once again.

How to solve this problem.

Anyone please help me.

Thanks in advance.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Use the value from the 1st combobox as the parameter for the query.

If you look in help you'll see how to do that.
 
Upvote 0
Ram, there are 2 steps:

1. Investigators combo:
Rowsource is something like
SELECT * FROM tblInvestigators WHERE CallCentre = Forms![MyForm]!CallCentre

2. In the AfterUpdate event of CallCentre:
Investigators.Requery

The first step links combo 2 to combo 1
The second step forces combo 2 to refresh once you select from combo 1

Denis
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

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