G
Gina
Hi .
I would like to set a date to be red if MOT is due this month and yellow if
next month.otherwise leave it black
but doesn't work ... why ???
(put it in the Form_GotFocus event as well ) same result ... no change of
color
Thanks for any advice what to do
Gina
____________________________________________________
Private Sub Form_Current()
If Form__frmCar.MOT<> Null Then
If Month(Form__frmCar.MOT) > Month(Date) + 1 Then
Form__frmCar.MOT.ForeColor = RGB(255, 0, 0)
ElseIf Month(Form__frmCar.MOT) > Month(Date) + 2 Then
Form__frmCar.MOT.ForeColor = RGB(255, 255, 0)
Else
Form__frmCar.MOT.ForeColor = RGB(0, 0, 0
End If
End If
End Sub
______________________________________________________
I would like to set a date to be red if MOT is due this month and yellow if
next month.otherwise leave it black
but doesn't work ... why ???
(put it in the Form_GotFocus event as well ) same result ... no change of
color
Thanks for any advice what to do
Gina
____________________________________________________
Private Sub Form_Current()
If Form__frmCar.MOT<> Null Then
If Month(Form__frmCar.MOT) > Month(Date) + 1 Then
Form__frmCar.MOT.ForeColor = RGB(255, 0, 0)
ElseIf Month(Form__frmCar.MOT) > Month(Date) + 2 Then
Form__frmCar.MOT.ForeColor = RGB(255, 255, 0)
Else
Form__frmCar.MOT.ForeColor = RGB(0, 0, 0
End If
End If
End Sub
______________________________________________________