Share via

EXPRESSION FOR NOT EQUAL

Anonymous
2011-05-10T17:54:07+00:00

Is their a expression in Query Design that would only show unique records OR not equal?

Thanks Tom

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. Anonymous
    2015-10-08T12:10:20+00:00

    That doesn't seem to work in my context.  I have a query in which there is a text field called "EndOfService" (which really should be a boolean but I didn't design this) that contains the letter "x" whenever that customer is dead or something.  In the query design screen, I can put an "x" in the criteria box and when run, only the records with "x" come up.  What I really want is all the records that DONT have an x.  If I look at the SQL, and replace the = with a <>, I get back no records.

    WHERE (((tbl_Clients.[Fin de service]) ="x") AND ((tbl_Clients.NoMail)=False))

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-05-10T22:10:18+00:00

    So what do you want to compare?    What not equal to what?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-05-10T21:27:55+00:00

    Here is my SQL Statement. In addition to doing what is named in this statement, I have a colunm named "SHORT BL" that have 7 numbers in it, that I only want the result to be if these numbers are different.

    FROM [VEH1 RGT4]

    WHERE ((([VEH1 RGT4].[VEH 1 RGT4]) In (SELECT [VEH 1 RGT4] FROM [VEH1 RGT4] As Tmp GROUP BY [VEH 1 RGT4],[SCAC],[SH DT] HAVING Count(*)>1  And [SCAC] = [VEH1 RGT4].[SCAC] And [SH DT] = [VEH1 RGT4].[SH DT])))

    ORDER BY [VEH1 RGT4].[VEH 1 RGT4], [VEH1 RGT4].SCAC, [VEH1 RGT4].[SH DT];

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2011-05-10T18:35:01+00:00

    What is the difference between a duck?

    You'll need to clarify. "Not equal" to... what? Unique in what context?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2011-05-10T18:31:58+00:00

    Use     <>    which means it must be larger or smaller.

    Was this answer helpful?

    0 comments No comments