I have a report with a sub-report. I need to make a text box bold on the main report when the sub-report has data.
Any examples or suggestions...?
Not sure how to set this up...???
Thanks in advance..!
jw5107
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.[[i]subreport Name[/i]].Report.HasData Then
Me.txtText.FontWeight = 700
Else
Me.txtText.FontWeight = 400
End If
End Sub
Is "Tail" the name of the text box or is it just a field name in your report's record source? What section did you add your code into?
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]
"Tail" is the name of the textbox as well as a field name in the reports record source. I placed the code in the Detail Sections - on format event..
Do you think you can take a look at thread702-1272806 - when you get a chance...????
Need some mad skills to help me out with that one...!!
Thanks in advance for all of your help!!
jw5107
Regarding the other thread, I don't know anything about Stephen's solution and don't really want to I guess if this was something that was significnt to my users I might take a look.
Did you get the original issue in this thread sorted out?
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]
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]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.