Results 1 to 3 of 3
  1. #1
    Secue is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jun 2013
    Posts
    33

    Question How to set an autonumber to an specific value?

    Hi,



    I'm working on a database, I have an autonumber field. I will use this field to provide to teh user a ticket number. Currently this sytem is working on excel and this number is actually rounding the 3000 records, How can I set the autonumber field to start for example on the number 3100 and not on the number 1?

    Thank you.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Options:

    1. http://support.microsoft.com/kb/209696

    2. calculate the value in queries and use the calculated field for sort and filter purposes
    [TicketNum] + 3000
    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.

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    My opinion - but since you want your "autonumber" to have meaning to the users, and be more-or-less under your control, I suggest that you not use Autonumber at all; instead use VBA to generate a new number whenever you need one, based on the current maximum. Autonumber can easily lead to gaps in the sequence, for example when a user cancels a new record.

    John

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

Similar Threads

  1. Replies: 2
    Last Post: 01-15-2013, 10:04 PM
  2. Replies: 1
    Last Post: 06-15-2012, 05:51 PM
  3. Replies: 6
    Last Post: 04-27-2012, 05:14 PM
  4. Using AutoNumber to issue specific numbers
    By capnpat in forum Access
    Replies: 8
    Last Post: 04-13-2011, 03:57 PM
  5. AUTONUMBER
    By J A F F A in forum Database Design
    Replies: 1
    Last Post: 10-03-2007, 10:30 AM

Tags for this Thread

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