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

Access97 calculate how many days fall between two dates 1

Status
Not open for further replies.

Roal

Technical User
Mar 27, 2003
12
GB
Hi,

I am trying to find out how many days fall between two dates stored in a table so that I can show on a report whether deadlines have been met.

I.e DateReceived and DateReplySent.

I need to look these dates up from a table (tblCorrespondence), in order to generate a report and was hoping to use a Look Up Query as the Record Source.
Being unfamiliar with Access97 it has been giving me a few problems and I was wondering if any one could suggest a simple way of achieving this.

Thanks in advance
Roal
 
look up DateDiff

see if that will help you...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Thanks,

I've tried using DateDiff, but I'm not sure how I can get it to look up dates in a table rather than prompting the user to enter a date.

Other than that it worked fine...

Roal
 
Try this:
DateDiff("d",[DateField1],[DateField2])
 
Thanks Nevets,

Thought that was the formula I wanted, but wasn't sure.

Re-checked and turns out I had made a typo on one of the fields. (school boy error)

Thanks again,
Roal

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top