Results 1 to 3 of 3
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    auto number

    Hi



    As readers of the forum will know I have been working on a database for weeks and thought I'd got it sorted. Thought being the word.

    So I'vedecided to grasp all my new found knowledge andstart from scratch to loose all the mistakes I made.

    However one question arises:

    If you have a table with an auto number field and fill it with data say 1-10 if you delete the records and then re populate is it normal that the numbering starts from 11?

    thanks

    Ian

  2. #2
    Mahendra1000 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    101
    As per my knowledge.. YES.

    if you have an auto number field and let's say you have deleted the total rows from 1-20 and if you want to enter then it starts from 21 not from 1.

    Someone please correct me if am going wrong

    Thanks

  3. #3
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    That is correct, the purpose of an autonumber field is to provide a unique key, nothing more. If you put the "New Values" property on "Random" you get a random number every time.
    If you want a series from 1 to n without any missing numbers you can use a Dmax function to calculate the next following number.

    Kind regards
    Noëlla

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

Similar Threads

  1. Replies: 5
    Last Post: 11-30-2014, 12:46 PM
  2. Auto number automatically next number
    By wnicole in forum Access
    Replies: 3
    Last Post: 10-17-2013, 08:45 AM
  3. Auto Number
    By sah in forum Forms
    Replies: 1
    Last Post: 04-30-2012, 07:20 AM
  4. AuTo NuMbEr
    By Evgeny in forum Forms
    Replies: 2
    Last Post: 04-25-2010, 04:23 AM
  5. Auto-number
    By rkski in forum Programming
    Replies: 2
    Last Post: 01-13-2010, 02:04 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