Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 18th, 2006, 04:55 PM
bobh
Guest
 
Posts: n/a
Default AccessXP Query question

Hi All,
In AccessXP I have a query and on the query grid in the Outcome(text
field) field I put the
criteria of

<>"ToArb"

when a record is open this field is null and when the record is closed
the users has a
combo box of values to select, one being 'ToArb'

When I load the query none of the null values will display so I have to
use

<>"ToArb" Or Is Null

I don't ever remember having to include 'Is Null' before in order to
get all records not equal to
'ToArb'. Do I have a setting someplace? or option set? that is causing
this.
thanks
bobh.

  #2  
Old December 19th, 2006, 04:15 AM
Allen Browne
Guest
 
Posts: n/a
Default Re: AccessXP Query question

You're right, bobh.

A criterion of:
<"ToArb"
will return records only where the field has a value, i.e. it does not
return Nulls.

It's always been like that. See:
# The Query Lost My Records! (Nulls)
at:
http://allenbrowne.com/casu-02.html

It's actually *very* important to understand how Nulls work, and why. There
are just a handful of issues where people constantly get tripped up. See:
Common errors with Null
at:
http://allenbrowne.com/casu-12.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"bobh" <vulcaned@isp.comwrote in message
news:1166460390.079912.113650@t46g2000cwa.googlegr oups.com...
Quote:
Hi All,
In AccessXP I have a query and on the query grid in the Outcome(text
field) field I put the
criteria of
>
<>"ToArb"
>
when a record is open this field is null and when the record is closed
the users has a
combo box of values to select, one being 'ToArb'
>
When I load the query none of the null values will display so I have to
use
>
<>"ToArb" Or Is Null
>
I don't ever remember having to include 'Is Null' before in order to
get all records not equal to
'ToArb'. Do I have a setting someplace? or option set? that is causing
this.
thanks
bobh.

  #3  
Old December 19th, 2006, 05:25 PM
bobh
Guest
 
Posts: n/a
Default Re: AccessXP Query question

Hi Allen,
Thanks for your reply and links.......... Must have been a dream I
had cause I really do not remember ever having to include "Or Is Null"
in the query criteria to get nulls along with the rest of the data
before. But, today's a good day cause I learned something new :)
Happy Holidays to ya!
bobh.

On Dec 18, 11:09 pm, "Allen Browne" <AllenBro...@SeeSig.invalid>
wrote:
Quote:
You're right,bobh.
>
A criterion of:
<"ToArb"
will return records only where the field has a value, i.e. it does not
return Nulls.
>
It's always been like that. See:
# The Query Lost My Records! (Nulls)
at:
http://allenbrowne.com/casu-02.html
>
It's actually *very* important to understand how Nulls work, and why. There
are just a handful of issues where people constantly get tripped up. See:
Common errors with Null
at:
http://allenbrowne.com/casu-12.html
>
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
>
"bobh" <vulca...@isp.comwrote in messagenews:1166460390.079912.113650@t46g2000cwa.g ooglegroups.com...
>
>
>
Quote:
Hi All,
In AccessXP I have a query and on the query grid in the Outcome(text
field) field I put the
criteria of
>
Quote:
<>"ToArb"
>
Quote:
when a record is open this field is null and when the record is closed
the users has a
combo box of values to select, one being 'ToArb'
>
Quote:
When I load the query none of the null values will display so I have to
use
>
Quote:
<>"ToArb" Or Is Null
>
Quote:
I don't ever remember having to include 'Is Null' before in order to
get all records not equal to
'ToArb'. Do I have a setting someplace? or option set? that is causing
this.
thanks
bobh.- Hide quoted text -- Show quoted text -
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles