Is it possible to toggle the .visible status of an object in a Report based on the value of one of the fields in the record?
I have a report called rptDrillDown which gives the details of a record after being called by an On Click event from the summary report. So far, so good. It's calling up just fine. However, each record has a check box indicating whether the study has to be implemented. When the box is checked, a whole bunch of fields show up with dates to track the implementation. When the box is unchecked, the fields are invisible.
This works great on my data entry form, but not so much for my report. The crazy thing is I thought it was working yesterday. Today, not so much.
Here's a sample of the code:
I deleted out all the other objects - none of them work. The behavior I'm getting is that whether IM (the check box) is checked (-1) or not checked (0), none of the fields show up.
I'm guessing either I can't do this in a report, or the answer is actually pretty simple.
Thanks, Rob
I have a report called rptDrillDown which gives the details of a record after being called by an On Click event from the summary report. So far, so good. It's calling up just fine. However, each record has a check box indicating whether the study has to be implemented. When the box is checked, a whole bunch of fields show up with dates to track the implementation. When the box is unchecked, the fields are invisible.
This works great on my data entry form, but not so much for my report. The crazy thing is I thought it was working yesterday. Today, not so much.
Here's a sample of the code:
Code:
Private Sub Report_Load()
If Me.[IM] = -1 Then
Me.Label75.Visible = True
Else
Me.Label75.Visible = False
End If
End Sub
I deleted out all the other objects - none of them work. The behavior I'm getting is that whether IM (the check box) is checked (-1) or not checked (0), none of the fields show up.
I'm guessing either I can't do this in a report, or the answer is actually pretty simple.
Thanks, Rob