How do I query for a count of days since a specific date?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What I'm trying to do is display the number of days that have past since the
last date (date/time format). Is this possible?
 
Use the DateDiff function:

DateDiff("d", [LastDate], Date())
 
Is there a calculation that can be used to automatically populate the current
date as the end date? I've heard of a get date function but am not familiar
with it.

For example:

DateDiff("d", [LastDate], [get present date])

Douglas J. Steele said:
Use the DateDiff function:

DateDiff("d", [LastDate], Date())

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Antwan C said:
What I'm trying to do is display the number of days that have past since
the
last date (date/time format). Is this possible?
 
That's exactly what I gave you: to get the current date, you refer to the
Date() function.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Antwan C said:
Is there a calculation that can be used to automatically populate the
current
date as the end date? I've heard of a get date function but am not
familiar
with it.

For example:

DateDiff("d", [LastDate], [get present date])

Douglas J. Steele said:
Use the DateDiff function:

DateDiff("d", [LastDate], Date())

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Antwan C said:
What I'm trying to do is display the number of days that have past
since
the
last date (date/time format). Is this possible?
 

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

Back
Top