Results 1 to 2 of 2
  1. #1
    mjhopler is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    26

    Lookup to show related values

    Two questions, but they are related.

    In the attached Database, I have four tables. The purpose of the Database is to track training for employees. A quick description of each table:

    Employees: List of employees requiring training
    Course List: List of Courses offered


    Course Schedule: When said courses are offered (one to many relationship with Course List). this has a Composite Primary key consisting of the Course Number and Section Number
    Course Attendance: This is to track which employees attended which class.

    Question 1:
    In the Course Attendance table, the first field (SOS Course Number) looks to the Course Schedule table. This field uses a lookup to select the course and section number, but only displays the course number. How do I get it to also display both the course and section number (don't care if it is displayed in one or two columns)?

    Question 2:
    Similar problem, except the second field is Employee Last Name which is a lookup from the Employee table. I want to display both last and first name in two separate columns.

    Note, I realize there are spaces in table and field names. Please ignore this for now. It will be fixed later.

    thank you,

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    For the first part, create an independent single field PK for your courseschedule table, an autonumber will work just fine. When you assign a person to a class use the single field unique identifier, not the dual field PK.

    Similarly, in your CourseAttendance table, do not store the last name (what if the name is typed in incorrectly and the person is assigned a course, then the person's name is corrected or changed, you have orphaned all of your information in the CourseAtendance table, instead store the ID from the Employee table.

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

Similar Threads

  1. Show related data on a form
    By Accessgrasshopper in forum Forms
    Replies: 4
    Last Post: 03-17-2011, 07:53 PM
  2. Replies: 4
    Last Post: 01-03-2011, 10:54 PM
  3. Don't show lookup list options in report
    By dara in forum Reports
    Replies: 1
    Last Post: 02-17-2010, 10:26 PM
  4. Lookup Values
    By jbarrum in forum Access
    Replies: 6
    Last Post: 12-31-2009, 08:58 AM
  5. Lookup or list field: how Do I not show all records
    By scott munkirs in forum Forms
    Replies: 4
    Last Post: 04-13-2006, 12:44 PM

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