Results 1 to 5 of 5
  1. #1
    Buzz619 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    3

    Exclamation Auto Numbering Issue

    Hi members,

    I'm having some difficulties on a task related to Auto Numbering.

    For Example:- Whenever i get to the new line, a new number should be populated. But the number can be repeated as per requirement till i put next number. then all previous sequence number can not be used.

    like:
    S.No.
    A-001
    A-002


    A-003
    A-003
    A-003
    A-004
    A-005
    A-005
    A-006


    Is there any way to make this happen?

  2. #2
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    What you have described is not and as far as I can tell cannot be an Autonumber.
    Autonumbers are identity fields and by definition they are unique.

    Surely a Serial number (as that's what it appears to be) should also be unique?

    If it's a batch number then that is a different thing, but still not easy to automate, as what determines when it changes?
    From your description is seem completely arbitrary?
    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
    Buzz619 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    3

    Unhappy

    Quote Originally Posted by Minty View Post
    What you have described is not and as far as I can tell cannot be an Autonumber.
    Autonumbers are identity fields and by definition they are unique.

    Surely a Serial number (as that's what it appears to be) should also be unique?

    If it's a batch number then that is a different thing, but still not easy to automate, as what determines when it changes?
    From your description is seem completely arbitrary?
    Ok,

    so please tell me the way for this situation:

    I need to enter a purchase invoice data. the purchase invoice have multiple unique items. so all items need to be entered into separate rows.
    so how can i give this invoice a unique & auto generated batch number?

  4. #4
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Ah ha - now we have more of the picture. This is a very common data structure, typically an Order and Order lines. In your case a Purchase order and Purchase order lines.
    So you have two tables one is your Purchase Order Header, and the other is your PO Line Data

    POHeader will contain who the order is placed against , when, perhaps who raised it etc, and contains your PO Number - This can be an Autonumber for simplicity, as long as you don't mind that it might have gaps in the sequence. But it will be unique.

    POLineData will have the PO Number as a Foreign Key, and a POLineID as the autonumber.
    This line contains your Part No, the qty ordered, and the item and or line price, as well as the two important numbering fields above.

    This is just the basics - you might need other fields for your business requirements.
    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 ↓↓

  5. #5
    Buzz619 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2019
    Posts
    3

    Red face

    Quote Originally Posted by Minty View Post
    Ah ha - now we have more of the picture. This is a very common data structure, typically an Order and Order lines. In your case a Purchase order and Purchase order lines.
    So you have two tables one is your Purchase Order Header, and the other is your PO Line Data

    POHeader will contain who the order is placed against , when, perhaps who raised it etc, and contains your PO Number - This can be an Autonumber for simplicity, as long as you don't mind that it might have gaps in the sequence. But it will be unique.

    POLineData will have the PO Number as a Foreign Key, and a POLineID as the autonumber.
    This line contains your Part No, the qty ordered, and the item and or line price, as well as the two important numbering fields above.

    This is just the basics - you might need other fields for your business requirements.
    Thanks for help!!

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

Similar Threads

  1. Auto numbering
    By hemaazez in forum Access
    Replies: 9
    Last Post: 02-18-2019, 11:50 AM
  2. Auto numbering of new records
    By edwardcga in forum Forms
    Replies: 1
    Last Post: 10-20-2013, 04:19 PM
  3. Access Auto Numbering
    By edieb in forum Access
    Replies: 1
    Last Post: 09-25-2013, 11:03 AM
  4. Auto numbering of forms
    By bgeorge12 in forum Forms
    Replies: 5
    Last Post: 06-30-2011, 05:05 PM
  5. Auto Numbering
    By rkruczk in forum Forms
    Replies: 0
    Last Post: 10-09-2006, 04:25 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