I need to develop a function to compare a date with the current date and to print the message indicated. I cannot get the code below to work proprerly. If enter a future date, I still get the "expired, need to file a new char" message, please help!!!
Public Sub CharIsExpired(ByVal Value As Date)
dtExpirationDate = Value
dtCurDate = Now()
If dtExpirationDate < dtCurDate Then
Debug.Print "Expired, Need To File a New Char"
Debug.Print dtCurDate
Else
Debug.Print "Current"
Debug.Print dtCurDate
End If
End Sub
Public Sub CharIsExpired(ByVal Value As Date)
dtExpirationDate = Value
dtCurDate = Now()
If dtExpirationDate < dtCurDate Then
Debug.Print "Expired, Need To File a New Char"
Debug.Print dtCurDate
Else
Debug.Print "Current"
Debug.Print dtCurDate
End If
End Sub