Age in days

L

lmossolle

I have a table with Date_Rec and Date_Awarded i would like the followig in
days;

Date_Rec-Date() Where Date_Awarded = "Null"

Could someone assist?
 
D

Duane Hookom

A date field can't equal the string "Null". Actually you can't compare any
value to Null since Null is about the same as unknown.

If you want to check for null, use:
WHERE [Some Field Name] Is Null
 
J

John W. Vinson

I have a table with Date_Rec and Date_Awarded i would like the followig in
days;

Date_Rec-Date() Where Date_Awarded = "Null"

Could someone assist?

Use a criterion of

IS NULL

just as I wrote it, with no = or quotes, on the Date_Awarded field; and

Age: DateDiff("d", [Date_Rec], Date())

as a calculated field.
 

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