R
Richard Massey
I am wanting to change the RecordSource for a subreport
based on criteria entered into a form.
The field in the form generate a piece of SQL code which
is a "Select" query. I want to automatically change the
RecordSource for my subreport when the main report is
opened.
My main report is called: "A1 Store Development ID"
My subreport is called: "D2 Status Details subreport"
and the SQL variable is called: "SQL Report Code"
I get an error message when I try. The code I am current
using after the OpenReport command (incorrectly) is:
Reports![A1 Store Development ID]![D2 Status Details
subreport]!Report!RecordSource = [SQL Report Code]
Can anyone help?
based on criteria entered into a form.
The field in the form generate a piece of SQL code which
is a "Select" query. I want to automatically change the
RecordSource for my subreport when the main report is
opened.
My main report is called: "A1 Store Development ID"
My subreport is called: "D2 Status Details subreport"
and the SQL variable is called: "SQL Report Code"
I get an error message when I try. The code I am current
using after the OpenReport command (incorrectly) is:
Reports![A1 Store Development ID]![D2 Status Details
subreport]!Report!RecordSource = [SQL Report Code]
Can anyone help?