Hi,
I pass an argument from a form to a report using OpenArgs.
In my report, I would like to display the OpenArgs (a room number) on the report heading line. I set up a text box on the report's heading line for this.
Can I use OpenArgs directly in the text box's record source property? If not, do I need to create a string to move the OpenArgs into, and then assign that value to the text box? I tried various iterations, but none work. I also tried setting the text box to the openargs in VBA, with "txtRoom = OpenArgs", but I get an error that I can't assign a value to that property (it's in my report's open event).
Any suggestions?
Thanks.
I pass an argument from a form to a report using OpenArgs.
In my report, I would like to display the OpenArgs (a room number) on the report heading line. I set up a text box on the report's heading line for this.
Can I use OpenArgs directly in the text box's record source property? If not, do I need to create a string to move the OpenArgs into, and then assign that value to the text box? I tried various iterations, but none work. I also tried setting the text box to the openargs in VBA, with "txtRoom = OpenArgs", but I get an error that I can't assign a value to that property (it's in my report's open event).
Any suggestions?
Thanks.