Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    ezybusy is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2015
    Posts
    119
    I mean the Id doesn't followin a professional manner.
    For instance if we cancel entry 1000 times, then the next completed entry get an Id of 1001.


    That's what I mean by gaps.
    So you can imagine if we have to cancel entry 10000 times.

    But anyway so far that's the ideal solution for now. I will still try to figure out other ways to make it work. If not I will have to stick to your suggestion.

  2. #17
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    That is the way an autonumber field works. Once a number is used (whether or not you keep the record), it is never reused.

    I just had a discussion with PBaldy on this subject.



    See these sites:

    Autonumbers--What they are NOT and What They Are
    http://www.utteraccess.com/wiki/index.php/Autonumbers


    Microsoft Access Tables: Primary Key Tips and Techniques
    http://www.fmsinc.com/free/newtips/primarykey.asp

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    There are ways to manage cancelling record when autonumber field is involved and not leave 'blank' record but not simple for all the reasons already presented. Need to tightly control user interaction and sounds like you have code in place to accomplish. However, there will be gaps in the autonumber sequence (as you have already noted) but that should not be a concern.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 07-20-2015, 12:58 PM
  2. Replies: 12
    Last Post: 03-01-2015, 01:36 PM
  3. Problem entering percentages in a form
    By 50Bucker in forum Forms
    Replies: 5
    Last Post: 08-05-2013, 02:34 PM
  4. Replies: 14
    Last Post: 08-01-2013, 09:46 PM
  5. Entering formula in text box
    By GregHolden in forum Reports
    Replies: 3
    Last Post: 02-02-2013, 07:48 PM

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