Results 1 to 3 of 3
  1. #1
    eww is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    125

    Relationship Between Two Subforms

    I've got a Project Information form with two subforms in it. One is a Submittal form where employees will enter the submittal date, weight amount, and description of what they detailed. The other subform is a Segments form, in which the employees are to enter segments of the entire project to detail (like categories).



    I have a "segments" combo box in the submittal subform that ideally I would like for the user to be able to pull down and select which segment (category) they are entering the submittal under. Both of these subforms I have related to the Project Information form through the Job Number, so for each record the related records in the subforms (to that job number) show up.

    My problem is when I go to pull down to select a segment, I get all the segments entered in the entire Segments table. I'm confused about how to relate these to get just the segments for that job number to show up in the combo box drop down.

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    that combobox has a record source. go to its properties, and select the ellipse .... and open up that record source in query design mode....then modify it to include criteria that will limit it to just record set you want. Probably this will be via a reference to a value elsewhere on your form i.e. Forms!FormName.JobNumberTextBox

    hope this helps.

  3. #3
    eww is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    125
    The criteria! That's what I needed, thanks for the help NTC.

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

Similar Threads

  1. Connect two subforms
    By phant0mw0rm in forum Forms
    Replies: 1
    Last Post: 08-01-2010, 11:50 AM
  2. subforms
    By thewabit in forum Forms
    Replies: 6
    Last Post: 02-01-2010, 09:03 PM
  3. Help with subforms
    By chocpoc in forum Forms
    Replies: 0
    Last Post: 05-20-2009, 11:50 PM
  4. SubForms
    By duckie10 in forum Access
    Replies: 4
    Last Post: 05-17-2009, 07:15 PM
  5. Subforms
    By henryclay in forum Access
    Replies: 0
    Last Post: 07-24-2007, 07:51 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