Text box properties on subreports

J

JoeA2006

Is it possible to globally control the properties of all text boxes on all
subreports contained in a main report ,to set width, fontsize, left etc. in
case the these properties needed to be modified? In the case the user wants
the font to be bold instead of regular, for instance.
 
M

Marshall Barton

JoeA2006 said:
Is it possible to globally control the properties of all text boxes on all
subreports contained in a main report ,to set width, fontsize, left etc. in
case the these properties needed to be modified? In the case the user wants
the font to be bold instead of regular, for instance.


No. Each control must use its own properties. OTOH, you
can use a loop to set the properties in the form's Open or
Load event:
For Each ctl in Me.Controls
If ctl.ControlType = acTextbox Then
'set properties here
End If
Next ctl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top