E
ExcelMan
I'm having trouble setting a text box controlsource on a report during
the Report_Open event.
Whenever I use the syntax
Me.txtMyTextBox.ControlSource = "=SomeText" & strVariable
if the value of strVariable looks like a number, (e.g. 2005) I have no
problem. But if it looks like a text string, when the report runs it
requests the value of a parameter (named strVariable). This even
happens if I replace strVariable with "Some more text".
What's going on. How can I pass a variable that contains text into the
controlsource so I can have it populate the textbox on my report?
Note: I'm trying to create a subheading that includes some text and
values I pulled from the database when opening the report. E.g.
"Actual data through Jan 2005"
Thanks.
the Report_Open event.
Whenever I use the syntax
Me.txtMyTextBox.ControlSource = "=SomeText" & strVariable
if the value of strVariable looks like a number, (e.g. 2005) I have no
problem. But if it looks like a text string, when the report runs it
requests the value of a parameter (named strVariable). This even
happens if I replace strVariable with "Some more text".
What's going on. How can I pass a variable that contains text into the
controlsource so I can have it populate the textbox on my report?
Note: I'm trying to create a subheading that includes some text and
values I pulled from the database when opening the report. E.g.
"Actual data through Jan 2005"
Thanks.