Results 1 to 5 of 5
  1. #1
    cfobare79 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    66

    Error with simple autonumber


    I have a report that I was trying to create a difficult Report Numbering System for. I decided to make it easy by creating a single text box that would create an autonumber for each report that was open then I could just merge that number with some other text boxes to create my Report Number. For some reason I can't get the auto number to work. 1) I created a text box. 2) I set the control source to =1 3) I set the running Sum to Over All. Does anyone have a suggestions?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    What does 'can't get the auto number to work' mean - error message, wrong results, nothing happens?

    That is not an autonumber (as in an autonumber field in table). That is just a calculated textbox on report that will calculate a sequential value for each record on the report. The calculation is dynamic and not saved anywhere. Each open report will calculate this value independent of other reports so can see the same numbers on each report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    cfobare79 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    66
    It is just showing "1" in the text box. From your comment June7 it sounds like this process isn't going to help me. Is there another easy was to get a simple increased number on a report?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    This sounds like generating a custom unique identifier. This means saving data into a table, searching for the last saved value and incrementing for new record. This is a common topic in form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 11-21-2013, 05:06 PM
  2. Simple Error Handler
    By Tim777 in forum Access
    Replies: 7
    Last Post: 11-16-2012, 06:23 PM
  3. Help With Simple Error on Dlookup and Insert To
    By asdaf3814 in forum Programming
    Replies: 9
    Last Post: 08-09-2012, 10:50 AM
  4. Replies: 4
    Last Post: 02-13-2012, 08:33 AM
  5. (simple) Expressions give error message
    By P.Hofman in forum Forms
    Replies: 3
    Last Post: 01-21-2010, 01:57 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