MattioMatt
Registered User.
- Local time
- Today, 22:24
- Joined
- Apr 25, 2017
- Messages
- 99
I have a date field on a pop up form "frmOSRecords".
This displays the listed OS's against an Asset. I've added a conditional format to change the textbox that displays when the OS is in full support until to fill red if the date is in the past.
However it seems it will only full the textbox if the value is null. I've tried a few things:
1. Using Conditional Formatting - "Field Value Is"


2. Using Conditional Formatting - Expression Is


3. VBA code on form load (this didn't work, nothing changed)
This displays the listed OS's against an Asset. I've added a conditional format to change the textbox that displays when the OS is in full support until to fill red if the date is in the past.
However it seems it will only full the textbox if the value is null. I've tried a few things:
1. Using Conditional Formatting - "Field Value Is"
Code:
Value < Date()


2. Using Conditional Formatting - Expression Is

3. VBA code on form load (this didn't work, nothing changed)
Code:
Private Sub Form_Load()
If Me.txtEval = 0 Then
Me.FullSupportUntil.BackColor = vbRed
Me.FullSupportUntil.ForeColor = vbWhite
Else
Me.FullSupportUntil.BackColor = vbWhite
Me.FullSupportUntil.ForeColor = vbBlack
End If
End Sub