ControlSource on text box in Group Header

G

Guest

When I print/preview my report, I pass it the grouping from the form it was
called from, and I set the GroupLevel(0) in the Open event of the Report,
this works fine.
I'm using Me.GroupLevel(0).ControlSource = strGroupHeader

Inside of that GroupHeader is a text box that I want to set the
controlsource to be the appropriate field from the table corresponding to the
Group level setting.
I'm using Me.txtGroup0Header.Controlsource = strGroup0Header
(where strGroup0Header is set to something like "Year". It won't let me do
this in the Report Open event or the GroupHeader0_Format event or the Print
event.
Where and how should I do this?
Thanks in advance!
Marty
 

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