LaurieHamlin
Programmer
Here's what I have:
tday = Format(#7/16/03#, "m/d/yy"
(changed from Date() to #7/16/03# to see if that was the problem)
wkend = Format(InputBox(Chr(10) & "Enter pay period ending date" & Chr(13) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & "As MM/DD/YY", "Week End Date"
, "m/d/yy"
I'm entering 7/25/03 for wkend. When I print the vars they're both correct, yet when I do datediff:
futuredt = DateDiff("d", tday, wkend)
and print futuredt it says 1/8/1900
A few lines down I check wkend against another date and the datediff works fine.
????????????????????????????????????????????????
Please let me know if you have any ideas. Thanks.
tday = Format(#7/16/03#, "m/d/yy"
wkend = Format(InputBox(Chr(10) & "Enter pay period ending date" & Chr(13) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & Chr(10) & "As MM/DD/YY", "Week End Date"
I'm entering 7/25/03 for wkend. When I print the vars they're both correct, yet when I do datediff:
futuredt = DateDiff("d", tday, wkend)
and print futuredt it says 1/8/1900
A few lines down I check wkend against another date and the datediff works fine.
????????????????????????????????????????????????
Please let me know if you have any ideas. Thanks.