Results 1 to 2 of 2
  1. #1
    Murtz is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    1

    Question Generating Customised Autonumber ID based on First letter of Field

    Hello,

    I am creating a database where i want to generate ID based of Names

    e.g

    I have a table called Products and if I add a product named Apple the id generated is A001 and when i add another product starting with A the next id generated is A002 and for product starting with B should be B001 and so on.



    How can i achieve this? Please help...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    This requires VBA code. It is a common topic. Search the forum or Google. Here is one https://www.accessforums.net/showthr...ght=autonumber
    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. Custom Autonumber based on lookup
    By luce725 in forum Access
    Replies: 7
    Last Post: 08-26-2011, 01:49 PM
  2. Replies: 4
    Last Post: 07-27-2011, 12:42 PM
  3. hide autonumber letter..
    By alex_raju in forum Forms
    Replies: 0
    Last Post: 07-20-2011, 12:44 AM
  4. Generating reports by incomplete field
    By mathonix in forum Reports
    Replies: 2
    Last Post: 01-28-2010, 06:37 PM
  5. Autofill field based on autonumber field
    By frevilla in forum Forms
    Replies: 1
    Last Post: 09-11-2009, 02:50 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