Results 1 to 4 of 4
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    Not equal

    Hi all, using access 2010. This may sound like a silly question, but can anyone tell me what exactly does <> equates to when using it in a query? ex. <>0. I know it means not greater or less than, but It doesn't seem to query correctly. What can be used instead?
    Thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Can you give us an example of what you are trying to do?
    What is the data-type of your field (number, text, etc)?
    Can you have null values or empty strings?

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    data-type is number. can have null values. Trying to say not = 0. Trying to correct someone elses query

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    <>0 should work then, though if you have nulls, you may have to use the NZ function to address those.

    If you need help, post the SQL code of your query here, and an example of a record or two that is not working correctly.

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

Similar Threads

  1. Retrieving a value with less than/equal to date
    By Markb384 in forum Programming
    Replies: 10
    Last Post: 02-11-2014, 03:15 AM
  2. Using Is Not Equal To in a query
    By Demerit in forum Queries
    Replies: 2
    Last Post: 12-26-2013, 04:25 AM
  3. Criteria not equal to and null
    By andy-29 in forum Access
    Replies: 7
    Last Post: 11-21-2012, 06:16 PM
  4. Not equal sign in query
    By j2curtis64 in forum Queries
    Replies: 3
    Last Post: 10-23-2012, 07:35 PM
  5. Set Numbers equal to each other
    By ygu3 in forum Access
    Replies: 1
    Last Post: 07-16-2009, 07:34 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