Results 1 to 5 of 5
  1. #1
    rgrstvr is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    25

    install keys including a letter


    i would like to start keys for different suppliers with different letters. for example a company named ABC would have product keys starting with a and then a series of automatically installed numbers. that is the series of keys would be a1, a2, a3, etc. and then a company named Village woud have keys v1, v2, v3, etc. how can i do this without having to manually install thousands of keys?

  2. #2
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Do you mean you want them autonumbered with a prefixed letter in front of them?

  3. #3
    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,850
    How exactly do you define Keys? What is the purpose? I think you might want to research Database design and Normalization.
    If you consider the Primary Key of a table as a tool for the Database Management System, you'll keep things simple. If you need other identifiers for yourself or users, then make a field to do so.
    One caution, don't try to put too much significance in your concocted identifier. Use the one fact, one field approach and you will save a lot of time debugging and redesigning when a new "unexpected rule" pops up.

    Good luck with your project.

  4. #4
    rgrstvr is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    25
    yes - that is exactly what I want to do.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Build a function that formulates the prefix and holds it in memory. Concatenate the variable to the autonumber field for display purposes.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-18-2012, 05:07 AM
  2. Runtime Install
    By headcase in forum Access
    Replies: 1
    Last Post: 02-01-2011, 11:11 AM
  3. Runtime Erro will not install
    By drunkinmunki in forum Access
    Replies: 4
    Last Post: 12-16-2010, 06:56 AM
  4. Replies: 1
    Last Post: 12-06-2010, 08:38 PM
  5. Access 2007 install issues
    By delwin69 in forum Access
    Replies: 8
    Last Post: 07-08-2010, 11:06 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