Results 1 to 3 of 3

Thread: How to add summary functions in group footers

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Europe
    Posts
    289

    How to add summary functions in group footers

    Hi,

    I use a report that does not have any database fields, only formula fields. I already know how to add a group with the addgroup method, but need to know how are summary fields added?

    I need to add a sub total for a money field in each group that has to show at bottom of eahc group but am unsure as to how this is done. Any help would be very much appreciated.

    Again, I don't use any database field and so CR does not allow me to physically add a group section and paste any formulas. It seems this needs to be done by code.

    I'm desperate!

    Regards,

    Mike

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: How to add summary functions in group footers

    I don't use any database field
    So where does the data come from? A database can be text files, Excel, ADO Recordsets. It does not have to be SQL Server, Oracle etc...

    A Summary field is just a formula that uses the Sum function.

    Sum({Report Object}, {Group Name})

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Europe
    Posts
    289

    Re: How to add summary functions in group footers

    Hi,

    Thanks.

    I use this to populate the fields:

    DistrSumm.Database.AddADOCommand AdoRSDistSum.ActiveConnection, AdoRSDistSum.ActiveCommand
    DistrSumm.FormulaFields(2).Text = DistrSumm.Database.Tables(1).Fields(2).Name

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width