R
Rockn
I was wondering if there was a way to use a variable when referencing a control on a report? I would like to make a subReport visible when its default setting is invisible. I need to place the variable inside of the report collection reference something like this:
Criteria from Main form to create the variable:
If IsNull(Me.[Text147]) And IsNull(Me.Text133) Then
rptType = "rpt_CustomerCopy"
End If
If IsNull(Me.[Text147]) And Not (IsNull(Me.Text133)) Then
rptType = "rpt_CustomerCopyDisc"
End If
and this is what I want to use to hide the subReport on the footer of the report: The "here" is where I would like to use the variable if it is even possible.
Reports!HERE.Report!rpt_Change.Visible = True
Thanks!
Criteria from Main form to create the variable:
If IsNull(Me.[Text147]) And IsNull(Me.Text133) Then
rptType = "rpt_CustomerCopy"
End If
If IsNull(Me.[Text147]) And Not (IsNull(Me.Text133)) Then
rptType = "rpt_CustomerCopyDisc"
End If
and this is what I want to use to hide the subReport on the footer of the report: The "here" is where I would like to use the variable if it is even possible.
Reports!HERE.Report!rpt_Change.Visible = True
Thanks!