K
KarenM
I would like to use a variable that is a date, strStartDate = "#01/01/" &
Year(Now) - 7 & "#" in an if statement. Do I need to include the # again or
is it sufficient to include it in the variable?
For example:
If ActiveXCtl26.Value < strStartDate Then
MsgBox "Please select a date later than " & strStartDate
ActiveXCtl26.Value = strStartDate
Exit Sub
End If
Thank you in advance for your help,
Karen
Year(Now) - 7 & "#" in an if statement. Do I need to include the # again or
is it sufficient to include it in the variable?
For example:
If ActiveXCtl26.Value < strStartDate Then
MsgBox "Please select a date later than " & strStartDate
ActiveXCtl26.Value = strStartDate
Exit Sub
End If
Thank you in advance for your help,
Karen