G
Guest
I have a report, that uses a stored procedure as a RecordSource, and uses the
InputParamters property to pass a date range to the stored procedure.
The report is launched from a form button. The form button passes the text
string for the InputParameters property by using the OpenArgs arguement of
the OpenReport method.
When the report displays, the dates have not changed. However, when I switch
to design view and then back to report preview, voila! There's the report
with the correct date range.
I'm wondering if this has something to do with the order of events? Does the
stored procedure run before the Report_Open() event fires? If so, is there
any other way to pass the parameters to the report earlier, or re-run the
stored procedure later?
Thanks!
Thanks!
InputParamters property to pass a date range to the stored procedure.
The report is launched from a form button. The form button passes the text
string for the InputParameters property by using the OpenArgs arguement of
the OpenReport method.
When the report displays, the dates have not changed. However, when I switch
to design view and then back to report preview, voila! There's the report
with the correct date range.
I'm wondering if this has something to do with the order of events? Does the
stored procedure run before the Report_Open() event fires? If so, is there
any other way to pass the parameters to the report earlier, or re-run the
stored procedure later?
Thanks!
Thanks!