Results 1 to 4 of 4
  1. #1
    shadowsedge is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2016
    Posts
    19

    Wink assign numbers

    Is it possible to assign alpha numeric numbers to a field, incrementally?


    would like it to be RA16-0001 where "RA16-" doesn't change and the 0001 changes based upon the previous record that was successfully created.
    This is not the unique ID of the record, just a 2nd field that would be created upon saving the record to the database.

    Example:
    1. A person open a form and fills in the blanks. (data entry)
    2. The person clicks a save button and the information is updated to the database and "RA16-0001" is added based upon if there was a previous "RA16-0000".
    3. The person then clicks print to make their own copy with the record ID and the Report ID on it. (if a hard copy is needed)

    Basically, every time a new record is created, a report number is created/added above the previous one so that I can note if there were any missing reports that may have been deleted.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You can use the DMax() + 1 method. I'd keep the 2 parts in separate fields. That will make it easier when the first part that doesn't change...does change.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    shadowsedge is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2016
    Posts
    19
    What is the dmax +1 method?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2014, 11:47 AM
  2. same numbers = differnet numbers?
    By mike02 in forum Queries
    Replies: 1
    Last Post: 07-17-2013, 03:40 PM
  3. automatically assign numbers
    By gvh in forum Access
    Replies: 3
    Last Post: 12-08-2011, 01:53 PM
  4. Replies: 1
    Last Post: 11-29-2011, 08:43 AM
  5. assign value from list
    By roman.pro in forum Forms
    Replies: 0
    Last Post: 05-16-2009, 04:20 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