Results 1 to 2 of 2
  1. #1
    biz_kid1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    1

    Question Create a field in table that will start with letters and autoincrement by one number?

    I am trying to make a primary key field for an auction database in Access 2010 on Windows XP SP3. I want the ID to begin with "LA" followed by auto-generated numbers that increment by one (so, LA0001, LA002, LA003 and so on). It only needs to be 4 digits long - the number of items will never be any higher than that. AuctionOrderNo only needs to be 3 digits long. And the database will only be a single user (me). I have one table (called LiveAuction) that includes the following Field Names, Data Types & Descriptions:


    Field Name Data Type Description
    ID (Primary Key) AutoNumber The assigned number of the live auction item.
    AuctionOrderNo Number The order number the item will appear in the bidding list.
    Description Text The description of the live auction item.
    ItemValue Currency The dollar value the live auction item is valued at.
    SaleAmt Currency The dollar value the live auction item is sold for.

    How can I accomplish this please? I don't mind creating VBA to do so, but I'm not a programmer and would need my hand held through that process! Thanks in advance for your time and assistance!



    ~biz_kid1

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Look at the section in this link on Sequential numbers. Pick the one that meets your needs.

    http://www.techonthenet.com/access/tables/index.php

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

Similar Threads

  1. Replies: 2
    Last Post: 02-25-2012, 10:17 AM
  2. Replies: 10
    Last Post: 09-11-2011, 11:50 AM
  3. Query to create an organized start schedule
    By Wizxon in forum Queries
    Replies: 3
    Last Post: 05-20-2011, 05:48 PM
  4. Replies: 11
    Last Post: 08-04-2010, 04:26 PM
  5. Multiple options to create semi-unique letters
    By GenericHbomb in forum Import/Export Data
    Replies: 0
    Last Post: 07-27-2010, 08:46 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