Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide rows if isnull(field)

Status
Not open for further replies.

sangathy

Programmer
Apr 27, 2006
7
US
I am trying to hide certain rows on the detail section of a report if the field value is null

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If IsNull(contact_date) And action = "" Then
Me.action.Properties("Visible") = False
End If
End Sub

but this hides the Action field through out the report. Any idea on how to hide rows( some are empty fields and some fields have value)

thanks
 
If you wish to hide an entire row, it may be best to either edit the query on which the report is based, or open the report with a Where clause. If you wish to hide a Control, you may wish to look at Conditional formatting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top