Results 1 to 3 of 3
  1. #1
    sstrode is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Location
    vista, Ca
    Posts
    1

    Custom Unique Identifier

    What I am trying to do is in access make a auto-generated indexed key that will be used to track the flow of a product. I want to be able to reference this number later on so what I would like to do is have this number auto-generate the month, and tack a number on to the number. what I want 09001 (09-September 001-first reference number) or 0914001 (month, year autonumber). I know how to do a preset prefix but I want this to grab the current month. any suggestions.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Constructing custom unique IDs is a common topic. Search forum and Google.

    Here is one for starters
    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
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Don't overbuild intelligence into a code/identifier. You will have fewer issues by adhering to the KISS approach --1 fact -->1 field.

    You could have a CreateDate and use Date() to populate same, and if Time was significant, use Now() instead of Date().
    You may wish to read this regarding autonumbers in Access before deciding on how to proceed.

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

Similar Threads

  1. Adding a unique identifier to each record
    By Jessica240 in forum Queries
    Replies: 28
    Last Post: 07-15-2014, 01:42 PM
  2. Replies: 4
    Last Post: 04-09-2013, 03:54 PM
  3. Using Social# as unique identifier
    By NEHicks in forum Database Design
    Replies: 3
    Last Post: 05-27-2011, 09:14 AM
  4. Restoring a lost field with a Unique Identifier
    By DBinazeski in forum Access
    Replies: 5
    Last Post: 12-20-2010, 08:02 AM
  5. Unique Record Identifier for MS SQL Server Tables
    By MGSP in forum Import/Export Data
    Replies: 2
    Last Post: 01-29-2006, 03:00 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