Results 1 to 2 of 2
  1. #1
    rohnds is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Austin, TX
    Posts
    7

    How to link subform using two fields

    I have two table, I containing make and model of cars and a few others.


    I have another table containing all the feature of the car linked via "Stock Number"
    I have a form and subform linked using the field "model". But I have designed the main such that I can filter the sub form using "Model" and "Make" of the car. This is done by first having drop down combo for "Make". When the user select the "Make" of the car, it will populate the another drop down combo listing "Model" for only car that match the "Make". I have accomplished this by using the sql statement for the record source of the combo box.

    My question is, Instead of doing this way, can I linked the form and the subform using a sql with two or more fields.

  2. #2
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    Yes, you can. You would just set your master child relationship on 2 fields.

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

Similar Threads

  1. Subform Link Issue
    By danhartman in forum Forms
    Replies: 7
    Last Post: 07-06-2010, 07:14 AM
  2. Replies: 1
    Last Post: 06-14-2010, 03:01 PM
  3. Replies: 1
    Last Post: 03-06-2010, 06:30 PM
  4. Import or link fields via ODBC
    By smoked1 in forum Import/Export Data
    Replies: 9
    Last Post: 10-30-2009, 03:55 AM
  5. Accessing subform fields
    By nkenney in forum Forms
    Replies: 1
    Last Post: 04-21-2009, 10:10 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