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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datareport Control Settings Problem

Status
Not open for further replies.

judyscofield

Programmer
Sep 24, 2001
56
0
0
US
I'm working on a datareport. The user can select Font attributes for particular fields before the report is run. I'm getting an all or nothing result on the output.

When I setup the report, I change the attribute when I initialize the report, moving through each of the controls to see what the user selected, the value being held in a table - example:

If rs2!rptColFontBold Then
drAdHocPortrait.Sections("Section1").Controls(x).Font.Bold = True
Else
drAdHocPortrait.Sections("Section1").Controls(x).Font.Bold = False
Endif

I've tried using x as the control value, and using the controls name in quotes. Whatever the last control is set to, the report prints all controls with that font attribute. What am I doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top