Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query between two dates 1

Status
Not open for further replies.

maeling

Technical User
Sep 23, 2002
109
GB
Hello,
how can I count between two dates in a query. I have a [start date] field and a [date complete] field in my table. I would like to create a field in my query called [numdaystocomplete] to count the number days it took to complete a task. Can you help ?
 
Take a look at the DateDiff function:
numdaystocomplete: DateDiff("d",[start date], [date complete])

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top