dmkennard2
Technical User
Hi,
I have two text boxes on a report that i show and hide depending on a value of a tickbox. The code below works for every record apart from the first record if the value is true. Both boxes properties are set to invisible, but if i enable them they show all the time on the first page.
Do i need to refresh the report when it first opens to make he code run for the first record? If so what is the best way, i have tried?
Thanks in advance
Dazz
I have two text boxes on a report that i show and hide depending on a value of a tickbox. The code below works for every record apart from the first record if the value is true. Both boxes properties are set to invisible, but if i enable them they show all the time on the first page.
Do i need to refresh the report when it first opens to make he code run for the first record? If so what is the best way, i have tried?
Code:
Private Sub Report_Page()
If [ConOpen_Closed].Value = True Then
lblClosed.Visible = True
ConDate_Closed.Visible = True
Else
lblClosed.Visible = False
ConDate_Closed.Visible = False
End If
End Sub
Thanks in advance
Dazz