Number of days in date range

  • Thread starter Thread starter Ivor Williams
  • Start date Start date
I

Ivor Williams

How do I write an expression in a query to return the number of days between
a specified date and the current date?

TIA,
Ivor
 
Ivor,
Try this:

datediff("D", #1/1/2004#, Now)

This should return 6.

You can also use M for how many months away from current date or Y for
years.

Jim Pavek
Fort Collins CO
www.squarei.com
 

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

Count days 2
Dcount returning no results!!! 0
# of days between two dates 4
Excel Message box with days of month & date. 1
Current Date in Query 12
days between tweak 5
Summing fields between two dates 1
Date Range for Query 4

Back
Top