Results 1 to 2 of 2
  1. #1
    Jacobm001 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    1

    Adding to create the ID

    I've decided it's time to really start learning Access so my first major attempt is a database to keep personal records of my grades and such at college. My biggest problem though seems to be a simple one.



    For my Unique ID on a particulare table I want it to be a combination of two boxes. I have my table set up with the following fields:

    • Unique ID
    • Department
    • Course #
    • Credits
    • Earned Grade

    I'd like the Unique ID to be combination of the department + course #. I keep them separated as such for easier sorting and manipulation later, but obviously neither alone makes a good ID by themselves.

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    welcome to the forum!!!!!!!!!

    To combine the two fields:
    =[DepartmentID]&[Course#]

    Now its upto u how and when you want this code to run.

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

Similar Threads

  1. Adding 2 fields together
    By Craig Spencer in forum Access
    Replies: 2
    Last Post: 04-08-2011, 02:10 PM
  2. Adding Records
    By Rick West in forum Forms
    Replies: 7
    Last Post: 05-17-2010, 02:31 PM
  3. Adding a Picture
    By MFS in forum Programming
    Replies: 4
    Last Post: 01-18-2010, 07:19 AM
  4. Adding a Field Name
    By jackthedog in forum Reports
    Replies: 1
    Last Post: 07-04-2009, 08:18 AM
  5. Adding pdf to a field
    By Hannu in forum Access
    Replies: 3
    Last Post: 05-27-2009, 07:08 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