Results 1 to 2 of 2
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    creation alpha numeric code


    Hi

    I have a Cemetery table with 39792 records each of which contains a field called Mlink which is not unique in fact I have 9994 different mlinks.

    each mlink is short text and has the format of L,NorL,NNN

    ie NN123
    N1234
    NN1234

    Now when I create a new record is there a way to have access populate that field with an automatic number that is unique but allow an manual over type if required.

    To elaborate if the family Jenkins has graves all family members will have the same Mlink ie NN1234

    So if a new burial takes place of a jenkins family member they would need the Mlink NN1234

    But if a new Burial takes place with no relative existing that would require a new Mlink that has not been used before

    thanks

    Ian

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Mlink = "NN" & format(date(),"yymmddhhnn")

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

Similar Threads

  1. Setting Code to Simple Numeric Age
    By wes9659 in forum Forms
    Replies: 6
    Last Post: 08-14-2014, 01:22 PM
  2. Replies: 1
    Last Post: 03-09-2014, 06:30 PM
  3. Alpha Numeric auto id?
    By arshadmgic in forum Forms
    Replies: 7
    Last Post: 09-02-2012, 03:00 AM
  4. Acess vs Alpha Five
    By afc in forum Access
    Replies: 5
    Last Post: 03-20-2012, 11:42 AM
  5. Recordset not showing alpha-numeric entries
    By rayhawk in forum Access
    Replies: 9
    Last Post: 10-29-2010, 08:15 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