VBA code: Select combobox value filter orders subform.

jakobt

Active Member
Joined
May 31, 2010
Messages
337
I have a form with a formheader. In the formheader I added a combobox to select a customer.

In the FORM I have a subform called orders.

Now I want to filter the subform based on the customerid selected in the combobox above.

Is it possible to add a macro in afterupdate in the combobox. So the orders table is automatically filtered on the customer id selected in the combobox.
 
You can just use the combo as the master link field.?
This is another way

 
Upvote 0

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