D
Darhl Thomason
I want to be able to conditionally format a txtBox on my report based on the
value of a yes/no field in my db. The txtBox shows a date and the yes/no is
to say if the date has changed. If the date has changed, I want the
background of the txtBox to be yellow, otherwise I want it to be white
(transparent actually).
Here is my code (note, I get the value of InstallDateChanged and
OpenDateChanged in the recordsource for the report.:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If tblStoreData.InstallDateChanged = True Then
Me.txtInstallDate.BackColor = vbYellow
Else
Me.txtInstallDate.BackColor = vbWhite
End If
If tblStoreData.OpenDatechanged = True Then
Me.txtOpenDate.BackColor = vbYellow
Else
Me.txtOpenDate.BackColor = vbWhite
End If
End Sub
Thanks!
Darhl
value of a yes/no field in my db. The txtBox shows a date and the yes/no is
to say if the date has changed. If the date has changed, I want the
background of the txtBox to be yellow, otherwise I want it to be white
(transparent actually).
Here is my code (note, I get the value of InstallDateChanged and
OpenDateChanged in the recordsource for the report.:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If tblStoreData.InstallDateChanged = True Then
Me.txtInstallDate.BackColor = vbYellow
Else
Me.txtInstallDate.BackColor = vbWhite
End If
If tblStoreData.OpenDatechanged = True Then
Me.txtOpenDate.BackColor = vbYellow
Else
Me.txtOpenDate.BackColor = vbWhite
End If
End Sub
Thanks!
Darhl