I am trying to bold certain records in a report, based on the value of a field. From what I can get out of HELP, I think I should be using the On Format Event Procedure in the Detail section. It does not matter whether the bolding applies to the entire line, or field by field. It may be that I am not using the correct combinations of . or ! or [].
Data for report: qryDummy Data
Data Fields in qry: FName
LName
BOLD (logical field)
(Note use of space in qry name and use of word BOLD for field name. Doable, but not smartest ways to do it!)
My Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [qryDummy Code].[BOLD] = True Then
Report.FontBold = True
Else
Report.FontBold = False
End If
End Sub
Your help is greatly appreciated.
Bob Hall
Data for report: qryDummy Data
Data Fields in qry: FName
LName
BOLD (logical field)
(Note use of space in qry name and use of word BOLD for field name. Doable, but not smartest ways to do it!)
My Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [qryDummy Code].[BOLD] = True Then
Report.FontBold = True
Else
Report.FontBold = False
End If
End Sub
Your help is greatly appreciated.
Bob Hall