I have this problem and cannot figure out for the life of me what I am doing wrong or what I am missing. Any help would be appreciate please and Thank you in advance.
Private Sub Form_Current()
'If the Expiration date value is ealier than January 1, 2017
'display the words "Time to renew"
'in label control to the right of the Expiration text box in bold, and red,
'display the text in the Expiration control in red
If ExpirationDate < #1/1/2017# Then
lblExpirationMsg.Visible = True
ExpirationDate.ForeColor = vbRed
End If
lblExpirationMsg.Visible = False
lblExpirationMsg.ForeColor = vbBlack
End Sub
Private Sub Form_Current()
'If the Expiration date value is ealier than January 1, 2017
'display the words "Time to renew"
'in label control to the right of the Expiration text box in bold, and red,
'display the text in the Expiration control in red
If ExpirationDate < #1/1/2017# Then
lblExpirationMsg.Visible = True
ExpirationDate.ForeColor = vbRed
End If
lblExpirationMsg.Visible = False
lblExpirationMsg.ForeColor = vbBlack
End Sub