Use the DateDiff function to "subtract" one date from another. DateAdd is for adding a specified period to an existing date or time variable.
Follow CajunCenturion's advice and look up the DateDiff function in the helpfile, then write expressions appropriate to your situation.
Easiest way to get the help up: go into the VBA editor, type
DateDiff (
then use the tooltips to fill in variables or press F1 to load up the context sensitive help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.