Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 7013 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

If I have a report that runs lets say 10 pages, how do I get the total of lets say the cost field of those records for each seperate page?

If I use a summary field it gives me the total of the cost field for all records.

Posted

But i want to print a report for all the records. There is no found set.

Are you telling me that I have to create a looping script that if there are 80 records, I have to figure out how many record will fit on each page and then do a find every time? Sorry, I am not sure what you mean.

Posted

Here is how I have done this in FM 6. There may be a better way in 8.

1. Create a field for print_page_# and a global field g_page

2. create a calc field for page_subtotal. It will sum your cost field through a self-relation (separate TO) based on print_page_#

Then set up a script to do the following:

3. go to layout to be printed

4. enter preview mode

5. go to last record/page

6. get current page number and set g_page with it

7. enter browse mode and go to last record

8. set print_page_# with value in g_page. this means that each record will have a value of which page that record will print on.

9. omit record

10. loop steps 4-9 and exit loop when found count = 0.

11. restore found count and print.

You should then be able to put the page_subtotal field in the footer. this is clumsy, and there may be a better way with new features in version 8. If so, hopefully someone will point it out.

James

www.BulletinInserts.org

www.james-mc.com

  • 2 weeks later...

This topic is 7013 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.