Results 1 to 4 of 4
  1. #1
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Counting # groups (all)

    I've been working on my house for past 6 weeks or so, and I think the paint fumes have finally gotten to me. I can't seem to focus.

    I've got a relatively simple report, in which the detail section shows Invoice information, and there is a grouping footer showing Customer Totals, and a Report Footer showing Report Totals. I want to show the # of customers in the report; that is, the report might have 20 invoices for 8 customers. The normal =Count(*) shows 20. How do I get a count of the # of customers?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Counting # groups (all)

    Put a text box tstRunningCount in the group header or footer for Customer.
    Set its Control Source to =1.
    Set its Runing Sum property to Over All.
    Set its Visible property to No.

    Put a text box txtCount in the report footer.
    Set its Control Source to =[txtRunningCount].

  3. #3
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Counting # groups (all)

    Hans,

    Thanks! That did it.

    I had already created that control in the footer (without the Running Sum), but then tried to do a =Sum(controlname), and it didn't like it.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Counting # groups (all)

    You can't use expressions such as Sum(controlname) in a report, only Sum(fieldname) and similar.

Posting Permissions

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