Results 1 to 2 of 2
  1. #1
    LukeJ Innov is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    31

    Setting Naming Conventions for IDs

    Hello all,

    I am wondering if it is possible to set a naming convention for auto numbered records?



    For instance in a table that holds information on customers, could you start the auto number scheme at something like 'cust01' rather than the normal autonumber scheme that's starts at 1 and continues.

    Just so I am absolutely clear, table could be:

    Customer_ID First_Name Last_Name
    cust01 Ben Robinson
    cust02 Dom Rodgers
    cust03 Lilly Balentine
    cust04 Luke Teal








    rather than the normal:

    Customer_ID First_Name Last_Name
    1 Ben Robinson
    2 Dom Rodgers
    3 Lilly Balentine
    4 Luke Teal

    Thanks,

  2. #2
    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
    You could, but what is so important about Cust?

    If the autonumber is important to you, and not just the underlying data base management system, then perhaps you are working with the wrong data type.
    Here's some info on autonumber

    I would suggest from a field naming point of view that you include some indication of the table, as you have, when naming the ID Field.
    CustID, ProjectID, ProductID etc, rather that a bunch of ID's with no context.

    But I don't see any business rationale for the data value itself to include "Cust"...

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

Similar Threads

  1. Naming scheme thru VBA
    By redbull in forum Programming
    Replies: 10
    Last Post: 04-10-2012, 02:37 PM
  2. Newbie question re naming columns
    By Kola in forum Access
    Replies: 4
    Last Post: 10-03-2011, 06:44 AM
  3. Naming conventions
    By Yesideez in forum Database Design
    Replies: 3
    Last Post: 06-29-2011, 08:55 AM
  4. Naming a Calculated Field
    By wscott in forum Reports
    Replies: 4
    Last Post: 10-11-2010, 02:20 AM
  5. Table naming - use prefix or not?
    By revnice in forum Access
    Replies: 4
    Last Post: 08-08-2010, 11:55 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