Help with a query

  • Thread starter Thread starter John Dumay
  • Start date Start date
J

John Dumay

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top