Results 1 to 2 of 2
  1. #1
    emnme is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    1

    Custom ID with year and incrementing log number

    Hello All-



    Been looking around for a solution for a custom ID and can't quite find one that's specific to my problem.

    I am creating a log and I want to give each new log entry a new log number. The format would be: IEyy-xxx. The ID is the letters IE, then 2digit year, a dash, then 3digit incrementing number. The ID should reset back to 001 every year (e.g. if IE14-623 is last log entry of 2014, first log entry of 2015 would be IE15-001).

    My table has an autonumber that I will use as the primary key- which is not the log number- and looks like this:

    These are the fields in my table:
    Index Log Number (autonumber and primary key)
    IE number
    Program Name
    Date Created

    Please help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I do this.

    Custom unique identifier is a common topic.

    Review: https://www.accessforums.net/forms/a...ing-23329.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.

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

Similar Threads

  1. Incrementing number in a query
    By FRAZ in forum Queries
    Replies: 2
    Last Post: 01-23-2014, 12:05 AM
  2. Replies: 5
    Last Post: 04-16-2013, 07:24 PM
  3. Help With Incrementing field number
    By Neil2p in forum Programming
    Replies: 1
    Last Post: 03-18-2013, 08:17 AM
  4. Replies: 1
    Last Post: 11-30-2011, 11:02 AM
  5. Custom & Auto Incrementing Job Number
    By mastromb in forum Programming
    Replies: 1
    Last Post: 01-05-2010, 02:58 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