In a grouped toggle button I'm trying to write an If statement that opens up different reports depending on the toggle button selected.
example of my If Statement that doesn't work.
Plz help. Thanks in advance!
Private Sub Command25_Click()
If Me.BusSize = True Then
DoCmd.OpenReport "rptBus_Size", acViewPreview, , StrWhere
End If
If Me.ContMeth = True Then
DoCmd.OpenReport "rptContMethod_Init", acViewPreview, , StrWhere
End If
End Sub
example of my If Statement that doesn't work.
Plz help. Thanks in advance!
Private Sub Command25_Click()
If Me.BusSize = True Then
DoCmd.OpenReport "rptBus_Size", acViewPreview, , StrWhere
End If
If Me.ContMeth = True Then
DoCmd.OpenReport "rptContMethod_Init", acViewPreview, , StrWhere
End If
End Sub