Difference between two dates

G

Guest

Is there a way in which i can determine the difference in date between the
date stored in a field and the end date of a query request?

example:

Field has date of 1/1/07. Query asks for a date range. Date range given is
1/1/07 - 1/31/07. I want to be able calculate the difference between the end
date and the field date
 
A

Allen Browne

If the field name is Field1, and the query asks for a parameter named [Wot
End Date], use:
DateDiff("d", [Field1], [Wot End Date])
 
G

Guest

Thanks.

Allen Browne said:
If the field name is Field1, and the query asks for a parameter named [Wot
End Date], use:
DateDiff("d", [Field1], [Wot End Date])

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Brett said:
Is there a way in which i can determine the difference in date between the
date stored in a field and the end date of a query request?

example:

Field has date of 1/1/07. Query asks for a date range. Date range given
is
1/1/07 - 1/31/07. I want to be able calculate the difference between the
end
date and the field date
 

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