Results 1 to 6 of 6
  1. #1
    Jennifer16 is offline Novice
    Windows 10 Access 2003
    Join Date
    Apr 2020
    Posts
    3

    Blank Queries are Producing Multiple Records


    Hello,

    I have 7 tables. Click image for larger version. 

Name:	Relationships.PNG 
Views:	10 
Size:	43.6 KB 
ID:	41673 For some reason when I run a blank query, using query design, it is producing multiple records. Click image for larger version. 

Name:	QueryProblem1.PNG 
Views:	9 
Size:	36.8 KB 
ID:	41674Can someone explain why and how to resolve? This does not seem to occur when using Query Wizard. I'm hopeful that this is enough information.

    Thank you so much

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    For some reason when I run a blank query, using query design, it is producing multiple records.
    I don't understand that statement. What is a blank query? If that's one that returns no records, then how can that query produce multiple records? Did you add tables to the query design but not join them, or remove the automatic joins? That would make it a Cartesian product.

    Then there is 'multiple' records. Most queries return multiple records, so that needs further explanation. You mean duplicate records? I didn't see any in your pic.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Jennifer16 is offline Novice
    Windows 10 Access 2003
    Join Date
    Apr 2020
    Posts
    3
    Sorry, new to this...When I use Query Wizard. I get 1 set of records. However, when creating a Query using Design View, I get what is in the second photo. As you can see, there are multiple duplications of the same records: Smith, Johnson, Adams, Jennings, Nelson are being repeated along with the appointment dates.

  4. #4
    Jennifer16 is offline Novice
    Windows 10 Access 2003
    Join Date
    Apr 2020
    Posts
    3
    Just looked again. You're right. The records are not being dupilicated. They are just the results of different days. Sorry about that. Thank you for replying.

  5. #5
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    No problem. I suspected you were thinking that those records where duplicates, but wasn't sure because of your terminology.
    You might want to research DISTINCT and DISTINCT ROW predicates as a related topic.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Jamesy_007 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Mar 2020
    Location
    Caribbean
    Posts
    109
    Hi Jennifer16 although i see you marked this thread as solved, you're right with this statement you jus need to put criteria's on your queries a patient can have many Appointment dates so you can use exg <#10/2/12 or >#10/2/12 to find the patients within a specific time frame am new also so if am wrong hope those guys that are very experience jump in... /QUOTE=Jennifer16;453618]Just looked again. You're right. The records are not being duplicated. They are just the results of different days. Sorry about that. Thank you for replying.[/QUOTE]

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

Similar Threads

  1. Query Producing Blank Rows? Fault IIf Logic?
    By kestefon in forum Access
    Replies: 6
    Last Post: 12-18-2013, 06:13 PM
  2. HELP Subform is producing multiple records
    By VeganLiving in forum Forms
    Replies: 7
    Last Post: 08-21-2013, 12:00 PM
  3. Help producing queries
    By skidia in forum Access
    Replies: 1
    Last Post: 05-13-2013, 12:21 PM
  4. Queries & Macros aren't producing results after system crash
    By Nashskye13 in forum Database Design
    Replies: 2
    Last Post: 06-07-2012, 03:12 PM
  5. Replies: 1
    Last Post: 07-25-2011, 09:57 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