sysop470
07-05-2005, 07:28 PM
Hi,
I want to find DUPLICATE Vehicle registration no with any Vehicle colour in a report but unfortuantly its not working. They are all remaing black as forecolor even if there are duplicates.Any help pls.
MY CODE IS:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If DCount("vehicle reg no", "VEHICLE", "[Vehicle colour]" = "") > 0 Then
Me![Vehicle Reg No].ForeColor = 255
Else
Me![Vehicle Reg No].ForeColor = 0
End If
End Sub
Thanks
Andrew
I want to find DUPLICATE Vehicle registration no with any Vehicle colour in a report but unfortuantly its not working. They are all remaing black as forecolor even if there are duplicates.Any help pls.
MY CODE IS:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If DCount("vehicle reg no", "VEHICLE", "[Vehicle colour]" = "") > 0 Then
Me![Vehicle Reg No].ForeColor = 255
Else
Me![Vehicle Reg No].ForeColor = 0
End If
End Sub
Thanks
Andrew