D
Dave Elliott
Both Text108 and Text106 are in format m/d/yy
Text108 control source is another date field.
The code below is on the beforeupdate event of a date field (Work Date) as
well which checks for the code below.
It does not work,why?
Text108 equals a control named Work Date which is a date field; m/d/yy
Text106 has it's control source set to
=Format(CDate(Date())-(Weekday(CDate(Date())))-2,"m/d/yy")
If (Text108) > (Text106) Then
Cancel = True
MsgBox "Enter a work date within the work week"
End If
Text108 control source is another date field.
The code below is on the beforeupdate event of a date field (Work Date) as
well which checks for the code below.
It does not work,why?
Text108 equals a control named Work Date which is a date field; m/d/yy
Text106 has it's control source set to
=Format(CDate(Date())-(Weekday(CDate(Date())))-2,"m/d/yy")
If (Text108) > (Text106) Then
Cancel = True
MsgBox "Enter a work date within the work week"
End If