Age in days

  • Thread starter Thread starter lmossolle
  • Start date Start date
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?
 
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
 
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

Similar Threads

Date Diff 5
Query Help 3
Counting cells base on a predetermined range 1
Average of days within a range 1
Range returning info from wrong sheet 2
PLEASE HELP ME 1
Over 30 Days 6
Count items over 30 days old 1

Back
Top