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

Text Box Calculations and Number of Pages

Status
Not open for further replies.

Moose222

Technical User
Oct 18, 2001
13
US
I am trying to make a output where (=-sum([GCFLAG]="C").
The answer to this is about 225. When I insert a Text box
the answer is displayed on 76 pages.

How can I get the answer to display on just 1 page?

Thanks in advance.

Jim Nelson
.
 
Hi - If I am understanding you, what you need to do is add the control/text box in the report footer and then it will display on the last page of the report.

Let me know if this works? Beth
 
Beth,

Thanks for your reply. I should have made this clear in the beginning. I am using Access 2000. I have a column that is labeled GCFLAG, in this column there are lets say 300 entries, 225 with the letter "G" and 75 with the letter "C".

I am trying to print out a report that is only one page where I can show the total # of G's and C's and a Total of both G and C. Thus far I have tried using DCount and DSum, both seem to work ok.

I used the following formula's:

For Total G: =-SUM([GCFLAG]="G")
For Total C: =-SUM([GCFLAG]="C")
For Total of Both: =-SUM(([GCFLAG]="G") OR ([GCFLAG]="C"))

I have tried putting these in the header, footer and details section but I seem to be getting up to 76 pages of info with the totals on each and every page.

I know this is something silly, but I would appreciate any help!!!

Thanks,
Jim
 
Hi Jim: If you want you can zip up your database and email it to me at:

beth@integratedresourcemgmt.com

I can take a look at it. It might be easier and quicker that way.

Beth
 
Jim,

If you're only looking for totals, create your report so there is no detail section. In your report footer put text boxes something like this:
Code:
=DCount("[GCFLAG]","YourTable","[GCFLAG] = "G")

=DCount("[GCFLAG]","YourTable","[GCFLAG] = "C")
and if they all contain one or the other...
Code:
=DCount("[GCFLAG]","YourTable")

 
This seems to have worked. How can I write a report without a details section? I have tried everything to delete it but NOGO.

Thanks,
Jim Nelson
 
If the detail section is empty, you can drag the top of the section below the detail section up (when the cursor becomes the "Horizontal Resize" one.....
 
Cosmo,

Thanks for your help, I have moved the footer section directly under the details section, and have moved the details section directly under the header section.

The problem is that I am still left with about 15 blank lines in the report.

Thanks for all your help, it is very much appreciated.

Jim Nelson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top