G
Guest
On Open, my report first opens a form and passes the report name to the form asn OpenArg; also the report has declared a public variable (PhaseChoice) for the value that it is expecting to get back from the form. The form gives the user a combo box to select a phase, and this value is then passed back to the report by setting the public variable as the report's property, like this:
Reports![strReportName].PhaseChoice = Phase.Value
This works fine if instead of strReportName, I have the actual report name, but it doesn't like the variable name. I tested with a Msgbox output that strReportName actually has the report's name, and it does, but I get an error that says there isn't a report called strReportName. I was hoping to reuse this same form for other reports that also require a phase selection, which is why I decided to pass the report name to the form.
Is there a way to do this?
Reports![strReportName].PhaseChoice = Phase.Value
This works fine if instead of strReportName, I have the actual report name, but it doesn't like the variable name. I tested with a Msgbox output that strReportName actually has the report's name, and it does, but I get an error that says there isn't a report called strReportName. I was hoping to reuse this same form for other reports that also require a phase selection, which is why I decided to pass the report name to the form.
Is there a way to do this?