Results 1 to 3 of 3
  1. #1
    Subs is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    5

    Subreport - 2 Master Fields to 1 Child Field

    I have created a sub report that I would like to check and return matches against two fields in the main report.

    Item1 and Item2 are columns on the same table, while item3 is a field on another table that can match both item1 and item2.

    When building the relationships in the GUI the properties turn out like this.
    Link Master Fields: item1;item2
    Link Child Fields: item3;item3
    But there are no results.

    Link Master Fields: item1
    Link Child Fields: item
    I get the matches for item1. If I change item1 to item2 that works also.

    I assume this is because access is treating the relationship as an and instead of an or. Is there a way to get both?

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Change the record source of the subreport, get the query to check the fields on the report.

  3. #3
    NTC is offline VIP
    Windows 10 Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    For you Master data set, using a query, create a calculated field 3 that is dependent on either/or Field 1, Field 2

    Have this as the record set of your Main Report, include the new field 3 in the report although after debugging it can be made not visible.

    Have your sub report link to field 3.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-11-2014, 11:25 AM
  2. Replies: 3
    Last Post: 11-24-2013, 06:59 PM
  3. Replies: 5
    Last Post: 03-30-2013, 12:56 PM
  4. Replies: 4
    Last Post: 02-07-2013, 04:11 PM
  5. Replies: 1
    Last Post: 02-20-2012, 01:59 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