How can I conditionaly suppress my report header?

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

If the record count for my report is a certain value, I want to supress the
report header and display only the detail section.

What object and property do I need to set to supress the report header?
 
Dave said:
If the record count for my report is a certain value, I want to supress the
report header and display only the detail section.

What object and property do I need to set to supress the report header?


Add an invisible(?) text box named txtRcordCount to the
report header and set its expression to =Count(*).

Then you can use code in the header section's Format event
procedure:

Me.Section(1).Visible = (txtRcordCount <> certainvalue)
 
Back
Top