Results 1 to 2 of 2
  1. #1
    edwardcga is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    31

    Auto creation of ID

    I have an application that have a main form and subform. I would like to have the application to generate the ID (the primary key and link to subform) base on the information INPUT, that is:

    Year, date and class, for example I enter the date (date field), and select the class (C, M, E, K using pull down box) then the application will generate the OfferingID as example below:

    OfferingID - 20140119C, 20140119M, 20140119E, 20140119K



    Your advice as how to accomplish this will be greatly appreciated.

    R

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Before you head down this road, you should read about primary keys. I would use an autonumber field as the PK.

    http://www.fmsinc.com/free/newtips/primarykey.asp
    http://www.utteraccess.com/wiki/index.php/Autonumbers

    You should have a field for the date and a field for the class. If you need to create an "OfferingID", you can concatenate the two fields in a query.

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

Similar Threads

  1. Replies: 8
    Last Post: 07-18-2013, 01:52 PM
  2. DVD Database Creation
    By Torani in forum Access
    Replies: 3
    Last Post: 01-11-2012, 06:28 PM
  3. Page creation
    By meliss421 in forum Access
    Replies: 6
    Last Post: 08-11-2011, 07:57 AM
  4. Replies: 9
    Last Post: 06-20-2011, 03:42 PM
  5. MDE Creation problem
    By bbylls in forum Access
    Replies: 24
    Last Post: 01-01-2010, 10: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