Results 1 to 3 of 3
  1. #1
    rebfein's Avatar
    rebfein is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2015
    Location
    So Cal
    Posts
    114

    Query is returning over 1M records, tables have a total of 27K, HELP!

    Click image for larger version. 

Name:	Pic 2.png 
Views:	9 
Size:	153.0 KB 
ID:	19936
    I've created a query from 3 tables. When I test it out I get a records list with almost 2 million records!



    I'm trying to create a query that sorts by active, Category, then 1st Description, from three tables that hold that information. The record amounts is all three tables is 9732, 9732 and 12023.
    Obviously they're duplicates (see Pic 1), but how can I stop this from happening?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Show readers the SQL of the query you are using, and the design of the tables involved.
    What exactly are the primary and foreign keys?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    As orange suggests, provide the SQL statement for analysis. I suspect the query involves several tables have 1-to-many or many-to-many relationships.

    What is purpose of this query - recordsource for a report? Report/subreport arrangement is probably needed.
    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.

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

Similar Threads

  1. Query not returning records
    By Daryl2106 in forum Access
    Replies: 2
    Last Post: 02-28-2013, 07:58 PM
  2. Replies: 1
    Last Post: 01-24-2013, 05:50 PM
  3. Query not returning records
    By Daryl2106 in forum Access
    Replies: 2
    Last Post: 11-28-2012, 09:29 AM
  4. Query Criteria not returning any records
    By SgtSaunders69 in forum Access
    Replies: 2
    Last Post: 12-19-2011, 07:45 PM
  5. Replies: 1
    Last Post: 05-19-2011, 10:55 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