Results 1 to 2 of 2
  1. #1
    AccessThis is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    9

    How to make a custom autonumber?

    Hi, I was wondering if there is a way to have a more dynamic auto number system.

    I basically want to enter invoice numbers, but usually the invoice numbers are successive i.e. 5243, 5244, 5245

    But sometimes there will be a jump such as 6667,6668,6670, ect...

    So I was wondering if there is a way to build an autonumber system that tries to auto complete the next number for you based on the initial number, so say if I typed 7000 as an invoice number and went to the next record, I would want the next record to fill in 7001 for me unless I go and manually change it to something else.



    Is it possible to change the autonumber system built into access in order to accomplish this? Thanks for the help!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    An autonumber field will skip numbers under certain circumstances (user starts to add a record, escapes out). There are some thoughts here:

    http://www.baldyweb.com/CustomAutonumber.htm

    The DMax at the bottom would work for you, and you don't even need a criteria.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Customizing the Autonumber field
    By wasim_sono in forum Access
    Replies: 3
    Last Post: 10-24-2014, 03:00 PM
  2. duplicate autonumber
    By rayc in forum Access
    Replies: 5
    Last Post: 06-19-2013, 07:50 AM
  3. Add prefix to AutoNumber
    By sirmilt in forum Database Design
    Replies: 3
    Last Post: 07-09-2010, 01:41 PM
  4. Controlling autonumber
    By Patience in forum Access
    Replies: 3
    Last Post: 06-22-2010, 04:11 AM
  5. AUTONUMBER
    By J A F F A in forum Database Design
    Replies: 1
    Last Post: 10-03-2007, 10:30 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