enter code hereI have this filtering form that has a toggle button. The toggle button has a series of different on buttons that represent different reports. The function of the toggle button is for the user to select which filters are active based on what is relevant to the selected report. I have a button on the bottom of the form that filters the report based on what is selected in the toggle as well as the filtering criteria. How would I go about opening the report based on the toggle selected?
Dim rptName As String
Select Case Me.yourOptionGroupFrameName
Case 1
rptOnboardParity = "TheReportForOption 1"
Case 2
rpCompletedExit = "TheReportForOption 2"
Case 3
Under Construction = "TheReportForOption 3"
Case 4
rptApplicantArchive = "TheReportForOption 4"
Case 5
rptSalaryIncreases
Case 6
rptEducation
Case Else
MsgBox "Not a valid Option", vbInformation
Exit Sub
End Select
DoCmd.OpenReport rptName
This is along the lines of what I was thinking for the toggle frame. I have my filter boxes and a button to filter based on those boxes but I do not know how to filter based on those boxes and open the report based on what is pressed in the toggle frame