Results 1 to 4 of 4
  1. #1
    Mtyetti2 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    26

    Linking master field to multiple child fields

    I am working on an aviation pilot database. I have a pilot form which has a sub form showing which flights that pilot flew. There are usually 2 pilots on any given flight. My two fields on the sub form are "pilot" and "copilot".

    My my question is, is there a way for the master field (pilotID) to be linked to multiple child fields? ie: show all records where the pilotID is a "pilot" OR "copilot".



    Thanks for for the help!!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Sounds like you will need two subforms, one for the pilot and one for the copilot. Another option may, and I emphasize may, be to create a query that has the appropriate join for the pilot vs copilot.

  3. #3
    Mtyetti2 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    26
    I was trying to avoid the 2 sub forms if I could avoid it.
    Can you explain what you mean by the query to join?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Queries use Joins. So if you can forget about the forms and subforms for a minute and go to the query builder..

    If you can imagine the relationship or join for the copilot and pilot, then you can build a query based on that. Maybe you will need to combine two queries to get the results you are after, the second query being a subquery. If you can get a row or record to display the way you want it in query view, you can use that SQL for the subform in your main form.

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

Similar Threads

  1. Replies: 5
    Last Post: 03-30-2013, 12:56 PM
  2. Replies: 4
    Last Post: 02-07-2013, 04:11 PM
  3. Replies: 1
    Last Post: 02-20-2012, 01:59 PM
  4. Master/Child between Subforms
    By Pilotwings_64 in forum Forms
    Replies: 3
    Last Post: 08-22-2010, 01:45 AM
  5. Replies: 2
    Last Post: 06-14-2010, 03:25 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