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

Omitting certain details in report

Status
Not open for further replies.

GoDawgs

MIS
Apr 1, 2002
670
US
I have a report I have created that has store numbers and sales in the details section for about 400 stores...I need the report to omit certain stores from the details section (but I still need that data in the recordsource, so I can't just take it out of there)...I am a decent programmer, but can't seem to figure out exactly when and how to skip these records, any help would be much appreciated...

Kevin
 
Kevin,

In your report's detail section, put code like this in the On Format event:
Code:
If Me.StoreNum= "89" Or Me.StoreNum = "90" ...etc.... Then
Cancel = True
End If

This will suppress the display of those records in the detail section.

You could also substitute a wildcard statement is that applies.....
 
Simple enough...and exactly what I was looking for...I appreciate it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top