Results 1 to 4 of 4
  1. #1
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409

    query not corresponding data on three field

    hi, i made this query


    Code:
    SELECT Conto.ID, Conto.Data, Conto.Entrate, Conto.Uscite, Conto.Descrizione, Conto.[Descrizione Completa], Conto.Stato, Conto.Moneymap, Conto.ContoFROM Conto LEFT JOIN MovimentiTotali ON (Conto.Entrate = MovimentiTotali.Entrate) OR (Conto.[Data] = MovimentiTotali.[Data]) OR (Conto.[Uscite] = MovimentiTotali.[Uscite])
    WHERE (((MovimentiTotali.Data) Is Null));
    i works (so far), i made it cause i want to find records that i have in "conto" table that have not match in "movimentitotali" table.
    i cannot use id cause in the "movimentitotali" table i add some records that i add not in "conto".

    is it correct?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    not sure what you are asking - you say it works so what is the problem?

  3. #3
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409
    the problem is that i tried it but i'm not aware of the logic behind it. the result is fine, but changing the "and" in the join to "or" does really what i want? find no matching data considering three fields?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

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

Similar Threads

  1. Replies: 3
    Last Post: 04-05-2020, 10:00 AM
  2. Replies: 2
    Last Post: 09-17-2019, 08:38 AM
  3. Replies: 3
    Last Post: 04-23-2014, 02:44 AM
  4. Query data based on another field
    By susanjb in forum Queries
    Replies: 9
    Last Post: 02-15-2014, 04:48 PM
  5. Replies: 7
    Last Post: 04-24-2012, 07:38 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