Click to See Complete Forum and Search --> : Difference between 2 dates
nandini
December 21st, 1999, 02:28 PM
Hi,
Using VBA in MS Access, how can I find the difference between 2 dates as X years Y months and Z days.
Thanks in advance.
Nandini
Allen Noakes
December 21st, 1999, 04:00 PM
Try using the function "DateDiff". It will return the info you want. Check MSDN documentation for more info.
Allen Noakes
VB Programmer/Analyst
Dames & Moore Group
tarandhingra
December 29th, 1999, 06:18 AM
you can use datediff function for getting the diiference between two dates.
you hav to specify that in which format do u want the difference like u want difference in terms of days or month or year etc.
u can check help for the exact syntax in case u find ne prob u can drop me a mail at tarandhingra@yahoo.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.