Results 1 to 7 of 7
  1. #1
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295

    Numbering Records

    Good Night All.



    I would like to know how to code a report to add row numbering automatically?




    Thank in advance.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    A report's VBA module id generally used to format the report. A user does not interact with a report in a way to fire code. Of course, I am sure there is someway you could get a function to fire from a report when it opens or closes. Just not sure why you would want to when there are forms.

  3. #3
    mrojas is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    You could generate a table that holds all the records for the report, including an empty field, say LineNo (numeric).
    Then using a recordset, in a loop, traverse it incrementing the LineNo field.
    Use the new table as the date source to your report.

  4. #4
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295

    Numbering records

    Thank I would try it. But don't you think by now such a feature should have been included in Access?

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In the detail section of the report, add a text box.
    Set the control source to "=1"
    Open the properties dialog box. Click on the data tab.
    Change the "Running Sum" property to "Over All".
    View the report.

    Attachment 14086

  6. #6
    mrojas is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    What Steve suggested is much better and easier to do. Go for it.

  7. #7
    George is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Posts
    295

    Numbering Records

    Thanks to you all.

    Steve that's a wonder easy suggestion. I work fabulously. A very special thanks to you.

    George

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

Similar Threads

  1. Help with numbering
    By hudsonp in forum Access
    Replies: 3
    Last Post: 11-21-2012, 08:55 AM
  2. how to get auto numbering on continuous form records
    By shubhamgandhi in forum Programming
    Replies: 1
    Last Post: 08-04-2011, 02:26 PM
  3. Page numbering
    By gumberculies in forum Reports
    Replies: 1
    Last Post: 04-11-2011, 02:21 PM
  4. Update query for numbering the records
    By kumar.dkr in forum Queries
    Replies: 4
    Last Post: 11-24-2010, 06:06 AM
  5. Numbering records
    By knightjp in forum Database Design
    Replies: 0
    Last Post: 08-17-2008, 07:07 AM

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