Results 1 to 2 of 2
  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

    Problem w/Query results, some dups, one missing

    I have come across an issue that I can't fix at this time; regarding a query from a database I've created for my boss. The db was created to keep track of parts and manufactures that are active, inactive or obsolete. I've created queries for many things and they've all worked fine, except for one; the query that sums it all up at a glance for my boss. I even went so far as to create a separate table just for him for this situation, but it is getting harder to avoid double entries; so I created the query for him instead. However, it is not working properly, as it is duplicating information for just two parts

    FYI: We can have up to 7 different manufacturers for each part; so I created 7 P/N tables to reflect this.

    My boss' query involves 9 tables (the 1st is for the part's category; the 2nd is a description of each part; and the other 7 are all the P/N Mfr. tables ).
    Click image for larger version. 

Name:	Design View.png 
Views:	10 
Size:	47.0 KB 
ID:	27121

    When I run the query, every thing was fine except for two part numbers:


    Click image for larger version. 

Name:	Query results 1.png 
Views:	10 
Size:	92.5 KB 
ID:	27122
    This query shows one extra repeating row of information for P/N DR30064 and up to 124 repeating rows of P/N DR30065.

    I went through the tables and deleted 3 rows of duplicate data; then I re-ran the query.
    Click image for larger version. 

Name:	Query results 2.png 
Views:	10 
Size:	22.6 KB 
ID:	27123 Click image for larger version. 

Name:	Table 2.png 
Views:	10 
Size:	20.8 KB 
ID:	27124
    Table 1 Table 2

    As you can see, the query still duplicated P/N DR30064 one time and does NOT show anything about P/N DR30065! I just want to output a list for my boss to look at a glance.

    For the past 2 years, you've all helped me when I was thrown into a situation of creating a part management db system w/out knowing ANYTHING about Access. And for your unwavering assistance, I am truly grateful. I also hope you can help me now.

    With thanks, Rebecca

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Because of your joins and data entries, you may get duplicates.
    If you dont want dupes, you can set the query to UNIQUE VALUES = TRUE.

    IF you need missing items, you will need an outer join.

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

Similar Threads

  1. Missing Data Query Problem
    By Jingmei in forum Queries
    Replies: 1
    Last Post: 12-11-2015, 03:43 PM
  2. Query missing results
    By awayhere in forum Queries
    Replies: 2
    Last Post: 04-01-2014, 03:50 PM
  3. Replies: 2
    Last Post: 08-07-2012, 03:58 PM
  4. Replies: 1
    Last Post: 07-14-2012, 01:37 AM
  5. Missing Counts that = 0 in query results
    By dandhjohn in forum Queries
    Replies: 1
    Last Post: 01-29-2010, 11:28 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