Connecting Tech Pros Worldwide Help | Site Map

Query With Not or <>

  #1  
Old July 17th, 2006, 03:55 PM
bshort1023@yahoo.com
Guest
 
Posts: n/a
I have text field with 3 possible values: C, F, or Null.

When I query with criteria: Not "C", I get only the F records and not
the Nulls. Is this normal?

I have been working with a SQL table through ODBC and when I use Not
"C" on that table I get the F records and the Null records. When I do
it against an Access table with the same field properties I get the
above results.

  #2  
Old July 17th, 2006, 04:05 PM
Rick Brandt
Guest
 
Posts: n/a

re: Query With Not or <>


bshort1023@yahoo.com wrote:
Quote:
I have text field with 3 possible values: C, F, or Null.
>
When I query with criteria: Not "C", I get only the F records and not
the Nulls. Is this normal?
Yes. Null is never equal to nor NOT equal to anything else (even another
Null). You need to use...

<"C" Or Is Null
Quote:
I have been working with a SQL table through ODBC and when I use Not
"C" on that table I get the F records and the Null records. When I do
it against an Access table with the same field properties I get the
above results.
SQL Server an be configures to handle Nulls in more than one way. The way
Access is handling them is considered the "correct" way.


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you use <table> or <asp:Table>? Ken Dopierala Jr. answers 5 November 18th, 2005 02:55 AM
Dictionary<> not using IComparable<> to find keys? ESPNSTI answers 2 November 17th, 2005 04:44 AM
A2K: Report formatting issue grouping on "Fld<>'Value'" ahaque38@hotmail.com answers 3 November 13th, 2005 01:59 AM
Access <- > SQL Server Jegger answers 6 July 20th, 2005 03:56 AM