Results 1 to 2 of 2
  1. #1
    Vanita is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Feb 2019
    Posts
    23

    Suffix for Auto number field

    Hi,

    1. Am trying to add the suffix to autonumber field, which is entered in previous field(i.e before entering Autonumber).
    2. Example:
    Field1: AAA, BBB
    Field2(Autonumber) : AAA-001, BBB-001.



    Could anybody help me with how do i do this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Can't use autonumber like this. Generating a sequence value for each Field1 value and saving to table will require VBA. Alternatively, let this sequence be calculated with textbox RunningSum property on report along with report Sorting & Grouping features.

    Generating custom unique identifier is a common topic. Search Google or forum.
    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. Replies: 2
    Last Post: 12-29-2016, 11:42 AM
  2. Auto number field
    By Eoluke in forum Access
    Replies: 3
    Last Post: 10-31-2015, 10:33 AM
  3. Add an Auto Number field
    By jrmbach in forum Access
    Replies: 1
    Last Post: 06-13-2014, 04:32 PM
  4. Null value in an auto-number field
    By mharkin in forum Import/Export Data
    Replies: 9
    Last Post: 10-03-2012, 07:43 AM
  5. Auto number a field
    By jenncivello in forum Access
    Replies: 2
    Last Post: 11-16-2011, 11:28 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