Due-date Red Alert!

I just entered this code (the first one you suggested minus the background change) and it worked!!! Weird things afoot, i must have made an error somewhere first time round...

Thanks again Paul!

Private Sub Form_Current()
If Me.[E-T QualificationExpiryDate] < Date Then
Me.[E-T QualificationExpiryDate].SetFocus
Me.[E-T QualificationExpiryDate].ForeColor = vbRed
End If
End Sub

PS to anyone reading this who has the same problems I did, just use conditional formatting... click on your control in design mode, then format on the top bar, conditional formatting, and set field value >= date() to be colored automatic, no background (normal). In fact, just use conditional formatting for everything and stop wasting so much of other peoples time :P
 
Last edited:

Users who are viewing this thread

Back
Top Bottom