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!

DateDiff returning 0

Status
Not open for further replies.

ba4crm

Technical User
Dec 19, 2003
92
US
I am using MS Access 97 and am trying to get the difference between two dates [CloseDate] and [CreationDate]. In the instance when the two dates are the same, is it possible to have the calculation display 1 instead of 0? I am using "=DateDiff("d", [CreationDate],[CloseDate])"

Thank you for your help
 
= IIF(DateDiff("d", [CreationDate],[CloseDate])=0,1,DateDiff("d", [CreationDate],[CloseDate]))"

 
Oops,

Just scratch that last quote mark at the end....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top