Results 1 to 3 of 3
  1. #1
    mduplantis is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jun 2010
    Location
    Omaha, Ne
    Posts
    65

    Using the current year plus record number as a field in a form

    Hello,



    I have a fairly simple database with just a few tables. My main table uses an auto number as my primary key. We track work injuries each year and I think it would be nice to create a field that uses the current year plus a number that starts over at the beginning of each year to easily track how many records we have each year. The user could quickly glance at the field and see we have X number of claims for the year.

    Example

    2015-001
    2015-002

    The year would be easy enough using the Year(Now()) concatenated with a number and then plus 1. I am not sure how to make it start over each year and where I would put these formulas.

    Thank you for any assistance.

    Brent

  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
    This is generating a custom unique identifier. 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.

  3. #3
    mduplantis is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Jun 2010
    Location
    Omaha, Ne
    Posts
    65
    Thank you. I did not search "custom unique identifier"

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

Similar Threads

  1. Replies: 4
    Last Post: 02-18-2015, 11:28 AM
  2. Replies: 2
    Last Post: 03-05-2014, 05:37 PM
  3. Replies: 1
    Last Post: 01-13-2014, 12:11 AM
  4. Replies: 5
    Last Post: 12-08-2013, 03:24 AM
  5. Current record number
    By turvoll in forum Programming
    Replies: 1
    Last Post: 11-04-2010, 10:09 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