Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Help with a query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Dumay - 23 Jan 2008 00:07 GMT
Hi All,

I am sure there is a simple solution to this but my brain doesn't seem to be
working at the moment.

In my dataset one field has the value "Data Quaternity" and the other values
are NULL (but could be another string) and I want to exclude any records from
the dataset which have this value. I have tried to put the following
expressions in the Criteria for the query.

NOT "Data Quaternity"

or NOT Like "Data Quaternity"

But when I do this all I get is an empty data set.

I can sort on IS NULL in the criteria now, but I don't want to do this as
there will definitely be other strings in this field in the future.

Any assistance is of course appreciated.

Regards,

John Dumay
Rob Parker - 23 Jan 2008 00:31 GMT
Hi John,

As you have found, the NOT criterion will exclude null values.  Include IS
Null as another criteria (in the next "Or" row in the query design grid) if
you want to include records where the string is null; this will not prevent
records with another string from appearing.

HTH,

Rob

> Hi All,
>
[quoted text clipped - 23 lines]
>
> John Dumay
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.