Help w/Conditional formatting
I have a report, based on a query. For each job number there are many records, but I only want the most recent to appear.
This is the code I'm using but it's not working. It's in the details section of the report.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
'Interim will expire in the query name
'Resubmission date is the date field that I want evaluated.
If Me.Resubmissiondate = DMax("ResubmissionDate", "Interim will expire") Then
Me.ForeColor = vbYellow
Else
'Me.Resubmissiondate.FontBold = False
' Me.Resubmissiondate.ForeColor = vbBlack
Me.FontBold = True
End If
Help would be greatly appreciated.
End Sub