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!

Problem adding number of Sort Groups in Report

Status
Not open for further replies.

LDP

IS-IT--Management
Sep 24, 2002
32
BB
Hello Everyone:

I've re-read most threads similar to my problem but I'm still having trouble counting the total number of sorted groups generated in a report .

Here's what I have.

A report based on a query that sorts month,by week date and sorts/groups by a document transmittal number.

Report Header
Page Header
SDSRD Header (Date/Week sort)
Monthly Report
Week Format$ ((SDSRD)"dddd","mmm"",""d")
SD# Dwg# RevNo Drawing Title Status Turnaround

Sd Header
Text51 (Label) Textbox =1 (Text51 Control Source)
Detail
Sd# Dwg# RevNo Drawing Title Status Turnaround
Page Footer
Report Footer

Total Shop Drawings this Month =Count(*)
Total "SD" submittals this month =??????

I've tried adding the SD# header, and a text box and setting it's control source to =1
then trying to sum the text box count in the SD Footer and/or Report Footer but to no avail.
I'm not sure of the expression to use to count the number of groups. Placing the textbox in Detail
only gives a count of total records which I already have. I need the number of groups.

The report looks like...


Monthly Shop Drawing Report

Report for : February 2004

Week: Tuesday Feb 3

SD# Dwg# Rev.No Drawing Title Status Turnaround

389.01 S-GP-130 F Elevation etc. etc.
S-GP-131 C Plan ....
S-GP-132 D Elevation.....

56.02 S-A325(1) Acrylic Dome....
S-A325(2) Detail Acryilic....

89.01 W-FJ-367 etc. etc.

Week: Friday Feb 13

SD# Dwg# Rev.No Drawing Title Status Turnaround

334.01 S-GP-142 D Elevation etc. etc.
S-GP-143 A Plan ....
S-GP-144 A Elevation.....

289.02 S-B345 Etc. Etc.
S-B347 Etc.Etc.

Total Drawings submitted this month = 11
Total SD# submitted this month = 5 (this I cannot get to work)

(there are a number of drawings submitted per SD# I would like to add total number of SD# sorted/groups per month as shown (5).

Thanks for your help in advance.


 
My apologies to all.I've re-read other threads and solved the problem.

I've added a SD# group header and a text box (say text48)setting it's control source to -1.It's also set invisible and grouped overall.
In the report footer I added another textbox with it's
control source set to =text48.
This counts the number of groups.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top