showing blank fields in query

E

Emma

Hi I have a table with a followup date column, I've put this in a query with
the hopes of only openning those records that have a blank followup date. I
tried =IsNull([Follow Up Date]) but this didn't bring up anything any ideas?
Thanks Emma
 
J

John W. Vinson

Hi I have a table with a followup date column, I've put this in a query with
the hopes of only openning those records that have a blank followup date. I
tried =IsNull([Follow Up Date]) but this didn't bring up anything any ideas?
Thanks Emma

Simply use a criterion of

IS NULL

no quotes, no parentheses, on the Criteria line under the field.

IsNull() is a VBA function which returns a Boolean True or False value - and
the criterion you used will never return any records, because a Date/Time
field might be NULL or might be a Date, but won't be either True or False.
 
E

Emma

Works like a charm thanks

John W. Vinson said:
Hi I have a table with a followup date column, I've put this in a query with
the hopes of only openning those records that have a blank followup date. I
tried =IsNull([Follow Up Date]) but this didn't bring up anything any ideas?
Thanks Emma

Simply use a criterion of

IS NULL

no quotes, no parentheses, on the Criteria line under the field.

IsNull() is a VBA function which returns a Boolean True or False value - and
the criterion you used will never return any records, because a Date/Time
field might be NULL or might be a Date, but won't be either True or False.
 
E

Emma

Sorry now I want to do the opposite do I type NOT(IS NULL) ?

John W. Vinson said:
Hi I have a table with a followup date column, I've put this in a query with
the hopes of only openning those records that have a blank followup date. I
tried =IsNull([Follow Up Date]) but this didn't bring up anything any ideas?
Thanks Emma

Simply use a criterion of

IS NULL

no quotes, no parentheses, on the Criteria line under the field.

IsNull() is a VBA function which returns a Boolean True or False value - and
the criterion you used will never return any records, because a Date/Time
field might be NULL or might be a Date, but won't be either True or False.
 
E

Emma

I used IS NOT NULL and it works fine

John W. Vinson said:
Hi I have a table with a followup date column, I've put this in a query with
the hopes of only openning those records that have a blank followup date. I
tried =IsNull([Follow Up Date]) but this didn't bring up anything any ideas?
Thanks Emma

Simply use a criterion of

IS NULL

no quotes, no parentheses, on the Criteria line under the field.

IsNull() is a VBA function which returns a Boolean True or False value - and
the criterion you used will never return any records, because a Date/Time
field might be NULL or might be a Date, but won't be either True or False.
 

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

Top