Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bold MainReportRecord

Status
Not open for further replies.

jw5107

Technical User
Jan 20, 2004
294
US
I have a report that contains a subreport. The subreport is linked by 2 fields/textboxes. Below is sample code that I use that draws a box around the subreport and the main report record that the subreport matches.. Is there any way I can get the main report record to print in bold text when the subreport has data? Any examples??

Me.DrawWidth = 15
If Me.PartsReqdMAINSF.Report.HasData Then
Me.Line (0, 0)-Step _
(Me.Width, Me.PartsReqdMAINSF.Top + Me.PartsReqdMAINSF.Height), , B
End If

Thanks in advance!!!
jw5107
 
I would think you could use code in the On Format event of the section containing the subreport to set individual text boxes and/or labels to FontBold=True. You seem to already understand the HasData property of the subreport control.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top