DateDiff

  • Thread starter Thread starter Patty
  • Start date Start date
You seem to be aware you would use the DateDiff function, as it is in the
Subject line of your question. In a query:

ElapsedDays: DateDiff("d",[Field1],[Field2])

Field1 and Field2 are generic names for the date fields. Use your actual
field names. Likewise, ElapsedDays can be a name of your choice.

Alternatively, as the Control Source of an unbound text box:
=DateDiff("d",[Field1],[Field2])
 
DateDiff("d",[Date1],Date2])
But remember the the difference between 3 July 09 and 4 July 09 is one day
and the difference between 3 July 09 and 3 July 09 is zero days. So you need
to add one to the difference.
 
Back
Top