Report - Running Count within a Group

前端 未结 2 1301
囚心锁ツ
囚心锁ツ 2021-01-26 17:18

I have an Access 2007 report which is grouped by RoomType_ID

I need to do a running count on each line within the Group so that I end up with something like:

Roo

相关标签:
2条回答
  • 2021-01-26 17:36

    Just place a text box in the details section of the report, make the data source of the text box simply:

    =(1)

    On the data tab of the above text box, set the running sum = “over all”

    So, you have For one line of detail in the report:

    [=(1)] [Couples Name] [Phone Number] ..etc
    

    And, I would call the text box "textCount"

    And, if you want at the “end” of the report, you can show a final count by placing the above text name in another text box in the reports FOOTER. eg: [textCount]

    Set the running sum to no.

    0 讨论(0)
  • 2021-01-26 17:46

    If probably use (detail) sections in your report (for the grouping). You can make a global integer for the running total value and have it reset every time the 'on layout' or 'on print' event of the header section fires.

    0 讨论(0)
提交回复
热议问题