View Single Post
 
Old 01-13-2014, 02:40 AM
BoringDavid BoringDavid is offline Windows XP Office 2010 32bit
Novice
 
Join Date: Sep 2013
Posts: 19
BoringDavid is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
That's because your second date is in the 21st year after the first date. Try using:
Code:
c = DateDiff("yyyy", DTPStartDate.Value, Date) - 1
Thank you that has corrected the code.
Reply With Quote