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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating dates in a query

Status
Not open for further replies.

Quempel

MIS
Jun 23, 2005
15
US
Good Afternoon

I am trying to build a query that will give me the number of days that are between the "Completed Date" and the "Requested Date".

I am not familiar with VB or modules. I thought I could just enter: Completed date - request date =

Any help would be much appreciated.
 
So, Would this be correct?

DateDiff([completed date]- [requested dated])
 


did you check out HELP for the correct usage and syntax?

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
In the field cell of the query grid:
NumberOfDays: [Completed date] - [request date]

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

Part and Inventory Search

Sponsor

Back
Top