Results 1 to 4 of 4
  1. #1
    epardo87 is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Dec 2016
    Posts
    102

    Query is duplicating values

    Hello All,

    I have the following query which is pulled from another query and tables, it is duplicating some rows and I can't figure out why, the original Query has 60 records and this one has 3960 records. I want the same 60 but with the additional columns.



    I'd appreciate your help a lot, thanks!

    this is the SQL:


    SELECT [Qry-CertLast].Estación, [Qry-CertLast].MaxOfFecha, [Qry-CertLast].Operador, [tbl-1-2-Estaciones].DíasCert, IIf([MaxOfFecha]+[DíasCert]>Now(),"Vigente","Vencída") AS Status, [MaxOfFecha]+[DíasCert] AS Due
    FROM [Qry-CertLast], [tbl-1-2-Estaciones];

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Without a join, you the Cartesian product of the 2 sources.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    epardo87 is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Dec 2016
    Posts
    102
    I realized that the source query was the one duplicating values, I erased the relationship arrows inside the source query and linked them again in order.

    thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 15
    Last Post: 10-18-2015, 04:05 PM
  2. Replies: 4
    Last Post: 07-24-2015, 07:03 AM
  3. Replies: 5
    Last Post: 01-11-2013, 03:54 AM
  4. Multiple Combo box - duplicating values
    By Haleakala17 in forum Forms
    Replies: 2
    Last Post: 09-18-2012, 06:26 PM
  5. Duplicating data in query
    By thart21 in forum Queries
    Replies: 3
    Last Post: 04-07-2011, 10:50 AM

Tags for this Thread

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