Switchboard Change Event to Change Record Source

pdevito3

Board Regular
Joined
Dec 17, 2013
Messages
246
Hey everyone,

So I have a form with a navigation control (a.k.a. Switchboard). One of the tabs on this tab navigation has a form with another switchboard form on it

I want each of these nested tabs to have the same form (frmTaskSummary) as their targets, but I want the record source of that form to change based on the selected tab. For example,

  1. select tab index 0, record source of frmTaskSummary qrySummary0
  2. select tab index 1, record source of frmTaskSummary qrySummary1
  3. select tab index 2, record source of frmTaskSummary qrySummary2
  4. etc.

Is this possible? I can handle writing the VBA, but I am not familiar with the specific syntax here... I know that if I used a tab navigation I can use the "On Change" event, but I would rather not rebuild at this point. Regardless, thanks for your time.
<!-- / message -->
<!-- controls -->​
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,214,621
Messages
6,120,568
Members
448,972
Latest member
Shantanu2024

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