If vb is comparing the 6 and the 21 then it is comparing strings.
For dates you can use the DateDiff function
try this in your form
VB Code:
date1 = 21/10/2002 date2 = 06/11/2002 Debug.Print DateDiff("d",date1,date2)
|
Results 1 to 4 of 4
Threaded View
|
Click Here to Expand Forum to Full Width |