Results 1 to 3 of 3
  1. #1
    CJ40 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Perth, Western Australia
    Posts
    1

    Autonumbering within Tables starting from a specified number

    Hi All



    [This is my first ever thread so feeling a little nervous! Please be kind to me ]

    Ok I am in the process of setting up a tracking database in Access 2013 to track the request, sent and returned number of soil sample kits for a state wise experiment, involving the general public. Each kit sent out will have a unique Kit ID number. It is possible for an individual to order more than one kit. In such instances, ideally I would somehow like Access to assign sequential Kit ID number from a specified initial Kit ID number without having to manually enter each Kit ID number; it is possible I will have farmers that could provide 100's of samples, as an example.

    I was thinking of using something similar to what I've seen in OC (creating patient positions), for Access forms set up - e.g.

    Customer ID [ABC1234]
    Number of kits ordered [3]
    First Kit ID Number Assigned [A0014]

    Then in the corresponding table, using the IDCustomer unique field to link the info, in the associated datafields , Kit ID number A0014 will appear next to Customer 'ABC1234' and then Access automatically assigns the next sequential Kit Numbers 'A0015' and 'A0016' against the same customer ID.

    Is this possible? (I hope this all makes sense!)

    Many thanks in advance to anyone who can help!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Perhaps this link will be useful: http://www.baldyweb.com/CustomAutonumber.htm

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    An autonumber field will sequence for you, but there needs to be 1 record per number of course.

    In your post you are displaying a single record with the field 'quantity' as 3. What you would need to do is have another table that holds the actual number ID where there is 1 record per ID - - and then inset this as a sub form and display the actual values by entering something into each record - perhaps just a checkbox check.

    This is a classic Parent/Child 1:many set up where your 1 parent record states the summary and then the child records have the detail.

    Now if you want the sequencing by customer i.e. Smith orders 3 : #s 5,6,7 and then six months later orders another two and they are to be #8,9 - - that is completely different and not an autonumber solution but rather a totally code centric custom approach.

    hope this helps

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

Similar Threads

  1. autonumbering.
    By puzzlednewbie in forum Access
    Replies: 3
    Last Post: 09-24-2012, 11:33 AM
  2. Auto fill data (number) between tables
    By juli in forum Access
    Replies: 1
    Last Post: 08-31-2011, 10:41 PM
  3. Replies: 1
    Last Post: 11-21-2010, 01:19 AM
  4. Autonumbering when a checkbox is clicked?
    By kutehart in forum Forms
    Replies: 1
    Last Post: 08-02-2010, 09:03 AM
  5. number of tables vs mdbs
    By seen in forum Database Design
    Replies: 6
    Last Post: 07-27-2009, 07: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