Results 1 to 7 of 7
  1. #1
    ashishkarapurkar is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2019
    Posts
    6

    Table records getting populated randomly instead of starting from 1st row in table

    HI,



    I am a novice in access.While importing table into a new/empty access database , the records are getting populated from any random row far below instead of starting from 1st row.Can someone please guide on what to do?

  2. #2
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Unless you make an order by clause when selecting the records, they have no specific order in a table.

    Even when in the table they are only displayed in a an arbitrary order, unless you have told access to display them in a specific order.
    If you need records in a specific order then you have to have something that can control that order. TimeStamp or similar.

    Ordered record sets are what queries are for.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    ashishkarapurkar is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2019
    Posts
    6
    HI Minty,

    It is not about order in a table.What i mean to say is i have an empty table and now when i import data with 100 rows for first time , the data is populating from row number 1000 to 1100 instead of row 2 to row 102.any solution for that.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Since this is an autonumber field, the sequence of numbers and gaps should not matter. Only purpose is to provide a unique identifier for each record.
    Last edited by June7; 03-16-2019 at 10:40 AM.
    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.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    does your table have an autonumber field? and is that what you are referring to here 'row number 1000 to 1100 instead of row 2 to row 102'. If so, this is normal behaviour. It is not a row number, it is a unique identifier for the record and as such has no meaning beyond that (such as row number, order of insertion, etc).

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Ajax beat me to it ....
    Autonumber fields will start from the previous record value +1 ...even if the previous record has been deleted
    So if you now have records 1000 to 1100, next import will start at 1101

    You can reset the autonumber 'seed' by compacting the database but the number has absolutely no meaning other than as a unique identifier as Ajax stated
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  7. #7
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    if in fact this is about autonumbers, suggest you read http://www.utteraccess.com/wiki/Autonumbers
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 6
    Last Post: 04-22-2018, 03:24 PM
  2. Table populated based on date
    By Master Klick in forum Access
    Replies: 2
    Last Post: 03-22-2018, 07:48 AM
  3. Replies: 2
    Last Post: 01-09-2018, 12:01 PM
  4. Replies: 5
    Last Post: 01-05-2015, 03:52 PM
  5. Replies: 3
    Last Post: 11-24-2010, 06:33 PM

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