Connecting Tech Pros Worldwide Help | Site Map

Query With Not or <>

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2006, 02:55 PM
bshort1023@yahoo.com
Guest
 
Posts: n/a
Default Query With Not or <>

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, 03:05 PM
Rick Brandt
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.