Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2014
    Posts
    26

    AutoNumber/ Generate specific ID Numbers


    We use an ID number to track changes in documents. Which normally denotes as "yy/###", where yy is the last 2 digits of the year and ### notes the number in a sequential sequence.

    is there a way to program Access to generator the tracker which changes the 'yy' to the year it is generated. i.e. currently it is 2014 and I would like it to generate "14/001" but when 2015 comes about I would like it automatically denote 2014 to 2015 to display "15/001"

    any one have any idea, I did try format properties in design view but I could only get the yy to change.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Have you tried using the Year() function?

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Code:
    i = i + 1
    ID= format(date,"yy") & "/" & format(i,"000")

  4. #4
    Join Date
    Jul 2014
    Posts
    26
    I have not tried the year funciton

  5. #5
    Join Date
    Jul 2014
    Posts
    26
    Quote Originally Posted by ranman256 View Post
    Code:
    i = i + 1
    ID= format(date,"yy") & "/" & format(i,"000")
    this does not seem to be counting.

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

Similar Threads

  1. generate autonumber
    By raffi in forum Access
    Replies: 5
    Last Post: 03-27-2014, 11:41 AM
  2. Replies: 3
    Last Post: 06-09-2012, 09:49 PM
  3. Replies: 1
    Last Post: 06-09-2012, 05:13 PM
  4. Replies: 6
    Last Post: 04-27-2012, 05:14 PM
  5. Using AutoNumber to issue specific numbers
    By capnpat in forum Access
    Replies: 8
    Last Post: 04-13-2011, 03:57 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