Results 1 to 3 of 3
  1. #1
    achammar is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2019
    Posts
    48

    Query returns double records

    Hi all again,



    So I have a main table with 6 other tables. The main table is the one side and is related to each of the other 6 tables which are the many side. I have a subform for each table in a main form tied to the main table, but I think that's irrelevant.

    I created a query using the main table and one of the sub tables to to return all the records in the sub table that match a record in the main table. This query is the control source for a report. It works fine for the most part. But I want to get another value from a different sub table for the report. So if I add that second sub table to the query, the data in the field that was currently working that is returned is now listed twice in the report.

    I hope that made sense. I tried setting the report to unique records only, and that works, but then it leaves every other line blank in the report.

    Any one know what I'm doing wrong?

    Thank you very much!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Yes, that output would be expected with multiple many side tables included in query. Use report/subreports arrangement.
    Last edited by June7; 05-13-2020 at 08:14 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    achammar is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2019
    Posts
    48
    Thanks June7! That got me on the right path for me to get it to work!

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

Similar Threads

  1. Update query returns 0 records
    By DMT Dave in forum Access
    Replies: 6
    Last Post: 03-04-2020, 12:03 AM
  2. Replies: 3
    Last Post: 01-18-2020, 01:36 PM
  3. Parameter query that returns no records
    By Roncc in forum Access
    Replies: 29
    Last Post: 01-07-2018, 06:01 PM
  4. Replies: 2
    Last Post: 04-21-2017, 01:15 PM
  5. SELECT TOP 10 Query returns 12 records
    By Paul H in forum Queries
    Replies: 8
    Last Post: 09-11-2013, 03:38 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