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

    Writing a Query!

    Hey guys!



    I have a Committee Table and a Faculty table. The Committee table imports the faculty ids for each of the five members of a committee.
    What I'm trying to do is write a query so that it would display the last names of the faculty members for each committeeID.

    The first image is the design view in Query design for these two tables. The second image is committee id followed by the faculty ids and I would like to see the ids replaced by lastnames.
    Attached Thumbnails Attached Thumbnails query.JPG   query2.JPG  

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You would add the Faculty table to the query 5 times. Access will give 4 of them aliases like Faculty_1 which you can change to something more meaningful. Then join each of your fields to a different copy.

    If it seems difficult, it's because the design is not normalized, which would be a related table with a record for each person.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Help with writing Query If Then Condition
    By taimysho0 in forum Queries
    Replies: 4
    Last Post: 01-20-2012, 06:09 PM
  2. Need Help with writing Query for TWO TABLES
    By taimysho0 in forum Programming
    Replies: 4
    Last Post: 01-18-2012, 07:26 PM
  3. Help Writing VBA and call to query
    By brianb in forum Programming
    Replies: 7
    Last Post: 03-09-2011, 09:42 AM
  4. Writing Query Results to New Table
    By quigongrim in forum Queries
    Replies: 2
    Last Post: 08-23-2010, 09:04 AM
  5. I need help writing a query statement
    By dking in forum Queries
    Replies: 1
    Last Post: 02-25-2009, 09:43 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