J
James
I'm trying what I thought was a very simple task, to hide a report label if
a certain text box/data field is null.
The following does nothing when the report is run.
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If Me!txtServOrdered = Null Then
Me!labServOrd.Visible = False
End If
If Me!txtServRendered = Null Then
Me!labServRend.Visible = False
End If
End Sub
Sould I try to test the actual field values rather than the contents of a
text box?
My data is from a query: qryInvoices
Any suggestions appreciated
a certain text box/data field is null.
The following does nothing when the report is run.
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If Me!txtServOrdered = Null Then
Me!labServOrd.Visible = False
End If
If Me!txtServRendered = Null Then
Me!labServRend.Visible = False
End If
End Sub
Sould I try to test the actual field values rather than the contents of a
text box?
My data is from a query: qryInvoices
Any suggestions appreciated