Results 1 to 3 of 3
  1. #1
    royalrochelle is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    13

    Running Sum Troubles

    I am stuck and I know this board can help me. I have created a survey database and I created a report that shows all surveys for all scholars. Each survey has two different sections (section A and Section B). So let’s say survey one has a total of 14 questions. Section A has 6 questions and sections B has 8 questions. I want to number each record per survey and then the numbering starts all over again when there is a new student or a new survey. Example below:

    Survey 1
    Student: Mary Smith
    Section A
    1. Question
    2. Question
    3. Question
    4. Question
    5. Question
    6. Question


    Section B
    7. Question
    8. Question
    9. Question
    10. Question
    11. Question
    12. Question
    13. Question
    14. Question
    So I made a text box in the detail section and called it txtRunningSum. The control source =1 and the running sum is over group. What I get is the following:
    Survey 1
    Student: Mary Smith
    Section A
    1. Question
    2. Question
    3. Question
    4. Question
    5. Question
    6. Question
    Section B
    1. Question
    2. Question
    3. Question
    4. Question
    5. Question
    6. Question
    7. Question
    8. Question

    Can someone please tell me how I combine sections A and B to get what I want? Thank you so much in advance!

  2. #2
    apr pillai's Avatar
    apr pillai is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Alappuzha, India
    Posts
    209
    Create Sorting and Grouping on Student Name, Section & Questions Order on the Report. Create Group Header/Footer on Student Name only, place Section and Questions on the Detail Section. You can set the Hide Duplicate Property value of Section to Yes to suppress displaying Repeating Section values.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You can also do this using an unbound control

    Create a text field in you detail section and make it's control source =1

    In the RUNNING SUM property of that text box to OVER GROUP. As long as you have a group header and footer for your different sections (which it appears you do) the line numbering will start at 1 for each new section.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 08-12-2011, 08:27 AM
  2. troubles with validation rules
    By focosi in forum Access
    Replies: 4
    Last Post: 08-02-2011, 10:46 AM
  3. DoCmd.TransferText acExportDelim Troubles
    By svcghost in forum Import/Export Data
    Replies: 1
    Last Post: 12-14-2010, 02:35 PM
  4. Query troubles
    By dmullins in forum Reports
    Replies: 0
    Last Post: 10-20-2009, 02:17 PM
  5. Form calculating troubles
    By Ufalufa in forum Access
    Replies: 0
    Last Post: 11-27-2007, 10:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums