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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional report printing based on field data

Status
Not open for further replies.

hedgracer

Programmer
Mar 21, 2001
186
US
I have a report which prints multiple pages (about 251) based on a specific set of criteria. On each of those pages is a field named JulAPC. I would like to not print the pages which do not meet the criteria JulAPC<1.00. How would I go about doing this? I have searched google and most recommend setting this up in the query that feeds the report. JulAPC is a calculated field inside of the report so this is not possible (the report is based on a table). Thanks for all help in advance.

Dave
 
Haven't checked - will this work?
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

    If JulAPC<1.00 Then Cancel = True

End Sub

"Don't be irreplaceable. If you can't be replaced, you can't be promoted."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top