Select all the controls in the detail line and set their Back Style to
TRANSPARENT. You can select all the textbox and label controls at one time
and set the Back style property of all them at the same time.
Add VBA code to the detail section's format eventto change the back color of
the section depending on the values of the two controls (or fields)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.ControlA <> Me.ControlB then
Me.Section(acDetail).BackColor = vbWhite
else
Me.Section(acDetail).BackColor = 13882323 'Light Grey
End If
End Sub
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County