Hey guys
I have a few subreports in one report. I want the condition where if a checkbox is checked in another form to determine if the subreport is going to be visible or not in the main report. Below is a snippet of the code I am using but it doesnt seem to be working.
Going into a little more detail. Cars1 is the form where the checkbox is.
I have placed this code in the "On open" properties of the subreport.
The reason I am doing this is because I have about 3 reports and whilst each report is independant in its own right, sometimes I may need these reports to merge into one.
Hope you guys can solve where I am going wrong.
George
I have a few subreports in one report. I want the condition where if a checkbox is checked in another form to determine if the subreport is going to be visible or not in the main report. Below is a snippet of the code I am using but it doesnt seem to be working.
Code:
Private Sub Report_Open(Cancel As Integer)
If ([Forms]![frmCars1]![Check29] = "True") Then
Visibility = True
Else
Visibility = False
End Sub
I have placed this code in the "On open" properties of the subreport.
The reason I am doing this is because I have about 3 reports and whilst each report is independant in its own right, sometimes I may need these reports to merge into one.
Hope you guys can solve where I am going wrong.
George