Results 1 to 4 of 4
  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 not returning any records.

    Hi there, its me again, with yet another question...

    I registered an earlier question today, in the Reports venue, about using the same report for separate queries all basically structured the same (fields, tables, etc.).

    So I copied the original query and replaced the company name and the query comes up empty. I checked the tables used and the information is there. The criteria is the exact same, but for the company name.

    Here's the original Design view:
    Click image for larger version. 

Name:	STEP 3.png 
Views:	13 
Size:	35.0 KB 
ID:	25402

    Here's the returned values:Click image for larger version. 

Name:	STEP 4.png 
Views:	13 
Size:	92.3 KB 
ID:	25403

    Here is the edited Design view:
    Click image for larger version. 

Name:	STEP 1.png 
Views:	13 
Size:	36.9 KB 
ID:	25404

    Here is the edited returned values:
    Click image for larger version. 

Name:	STEP 2.jpg 
Views:	13 
Size:	109.8 KB 
ID:	25405

    What am I doing wrong????

    Thank you in advance,

    Rebecca Feinstein

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Check that the criteria values on the 2 columns, do they match values in that field in the table? Soimetimes you can spell them wrong. If all is good, then it is your links. Since you have it set to InnerJoin, if either table does not have a matching record, it will return no data. Change the joins to both Left Outter (arrow pointing to right) on both links and see what it shows you. Or another test, take out one of the tables, see if it returns data to try to pinpoint the issue.

  3. #3
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    For KGS_PN
    Code:
    Like "IC" & "*"
    You don't need the first wildcard *
    You don't have any square brackets in the fields, so you will never get a match.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In the first column of the query, the top query (works) you have "INTE".
    In the second version of the query, the bottom query (doesn't work) you have "=DIIN".

    Try removing the "=" sign......


    Also, it looks like you have a design problem - table "TBL_KGSComponentsListofAllMfrs" is not normalized.... (repeating fields)

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

Similar Threads

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