Results 1 to 4 of 4
  1. #1
    samanthaM is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    25

    Query Error (Picture)

    Please see the image below that clearly illustrates the problem.



    I wrote a simple query in my database that returns addresses where the fields "situs_address" and "Owner_address" are not the same. This works fine; however, when I add an additional field to the query it stops functioning correctly.

    I add the city field and set it to 024, a specific city in texas, and now the query returns records where situs_address and owner_address are both equal and not equal to each other. It should only return records where the two fields are not equal to each other within city 024. Not sure why adding the city field seems to make the query stop behaving correctly.


  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,521
    The first is not doing what you think. With the value in quotes it's comparing to a literal string, not the field. Change the quotes to brackets and see what happens.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    samanthaM is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    25
    Bingo, thanks pbaldy!

  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,521
    No problemo!
    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: 3
    Last Post: 09-05-2012, 10:23 AM
  2. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  3. Rotate a Picture
    By ksmith in forum Access
    Replies: 4
    Last Post: 08-16-2010, 01:55 PM
  4. Opening a picture
    By dada in forum Programming
    Replies: 1
    Last Post: 08-15-2010, 09:33 PM
  5. Inserting a picture
    By Carenas in forum Forms
    Replies: 0
    Last Post: 01-03-2009, 05:09 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