D
Dave Elliott
Why does this code not work? Text108 is a date field as well as Text106!
Format m/d/yy
If Text108('s date) is past Text106('s date), then cancel
Let's say Text108 date is 11/04/04 then cancel the update, because
Text106 date is Thursday 11/03/04
This date (Text106) would be the last date acceptable in the pay period
The Control field is named (Work Date) where the code should be triggered
on the before update event.
If (Text108) > (Text106) Then
Cancel = True
MsgBox "Enter a work date within the work week"
End If
If the date enetered in the control Work Date is a date beyond;
Thursday of the current week then a message and cancel = True. (Format
m/d/yy) for control Work Date
The code neeeds to be triggered on the before update event.
This is a payroll module and uses the current weeks dates to calculate,
current week is 10/28/04 thru 11/03/04
Format m/d/yy
If Text108('s date) is past Text106('s date), then cancel
Let's say Text108 date is 11/04/04 then cancel the update, because
Text106 date is Thursday 11/03/04
This date (Text106) would be the last date acceptable in the pay period
The Control field is named (Work Date) where the code should be triggered
on the before update event.
If (Text108) > (Text106) Then
Cancel = True
MsgBox "Enter a work date within the work week"
End If
If the date enetered in the control Work Date is a date beyond;
Thursday of the current week then a message and cancel = True. (Format
m/d/yy) for control Work Date
The code neeeds to be triggered on the before update event.
This is a payroll module and uses the current weeks dates to calculate,
current week is 10/28/04 thru 11/03/04