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!

Two sets of results on one report?

Status
Not open for further replies.

Frank72

Technical User
Nov 13, 2001
57
IE
Hi,

I'm trying to get two groups on a report. The first group contains all records where daysLate is <7 , the other for all records where daysLate is >7. Can i use 2 queries and then put them both on 1 report with their own headers and footers?

Thanks

Frank
 
Two solutions at first look:
1) either put the report producing what you expect twice as a sub-report in an embedding report. The first one based on the query <7 and the second on the query >7.

2) Or create an additional field in your query which value is 1 when dayslate <7 and 2 when dayslate >7
Add a group in your report based on this field at the top level. Use the parameter of this group to achieve the correct page skip and group header printout.
In the group header section put a text box reflecting the value through a formula like: =iif(dayslate>7;&quot;More than 7 days late&quot;;&quot;Less than 7 days late&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top