View Full Version : Date difference


largent8017
01-11-2001, 12:01 AM
I have a text box that contains the current date. I also have a text box that will contain a date in the future. If the transaction date and this other text box are in the same month something happens differently than if they are not. How do I get it to just recognize the month instead of the whole date?

ntp
01-11-2001, 03:49 AM
if DateDiff("m",[txtCurrentDate],[txtFutureDate]) = 0 Then
'They both occured in the same month
'Do yuor processing here
Else
' Do whatever processing to handle being in different month if any
End if

ntp