I am having a problem with this line of code:
If (rstDates!fldValidFromDate <= Format(Now(), "mm/dd/yyyy")) And (rstDates!fldValidToDate >= Format(Now(), "mm/dd/yyyy")) Then
It works most of the time but not when one of the fldValid dates is exactly equal to Format(Now(), "mm/dd/yyyy"). It as if the <= and >= are not working properly.
Any suggestions?
If (rstDates!fldValidFromDate <= Format(Now(), "mm/dd/yyyy")) And (rstDates!fldValidToDate >= Format(Now(), "mm/dd/yyyy")) Then
It works most of the time but not when one of the fldValid dates is exactly equal to Format(Now(), "mm/dd/yyyy"). It as if the <= and >= are not working properly.
Any suggestions?