Results 1 to 4 of 4
  1. #1
    binitbegwani is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2015
    Posts
    1

    Post Custom Sequential autonumber of different series

    Dear Sir/Madam,


    I am using Ms Access 2007 and I am new to it


    I have table of following fileds


    ID (as a primary key)


    AccountingYear (Filed for current accounting Year e.g., 14-15; 15-16)




    Series (text- as R, Y, B etc to denote series code)


    OrderNo (field to store custom autonumber Order No e.g., for Series R-1, R-2, for series Y Y-1, Y-2, etc)


    I have created a form using all these fields


    Now what i want to do is I want to create custom order no as


    first 2 digit of accounting year+Series+Autonumber of respective series as


    14R-1
    14R-2
    14Y-1
    14Y-2
    14Y-3
    14B-1


    15R-1
    15R-2
    15Y-1
    15Y-2


    Means autonumber starts with 1 for every accounting year of respective Series


    Please guide me as how to do this and what code or formula should be applied and where the code should be inserted as I am new to Ms access

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Generating custom unique identifier is a very common topic. Search forum. Here's one https://www.accessforums.net/access/...ers-21361.html
    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.

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    this is a common requirement which has been answered many times. If you look at the bottom of this thread you will see links to a number of threads on the same subject. Take a look through those and come back if you get stuck

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    just seen you have an identical post on another forum - please have a look at this link

    http://www.excelguru.ca/content.php?184

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

Similar Threads

  1. Custom Autonumber based on lookup
    By npresadbukka in forum Access
    Replies: 2
    Last Post: 07-08-2013, 10:36 PM
  2. Sequential autonumber primary key
    By JackCampion in forum Access
    Replies: 0
    Last Post: 09-17-2012, 05:07 PM
  3. Custom Autonumber based on lookup
    By luce725 in forum Access
    Replies: 7
    Last Post: 08-26-2011, 01:49 PM
  4. Replies: 1
    Last Post: 08-02-2011, 06:46 PM
  5. How to make a custom autonumber?
    By AccessThis in forum Access
    Replies: 1
    Last Post: 07-20-2010, 06:49 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