P
Paterson10987
is there a way I can change the RecordSource of my report when i go to open it?
I tried
Reports!rptSummary.RecordSource = strSQL,
but if done after you open it an error comes up saying that once the report
is 'printed' the record source cannot be changed.
The SQL that i want it to have come from a query of sub queries that changes
often. I don't suppose I can get just the WHERE part of the SQL and add that
to the 'where' parameter of the docmd.openreport. But it would not let me
filter my form this way, thats why I change the forms record source, so would
it work with the report?
I don't know. Help.
I tried
Reports!rptSummary.RecordSource = strSQL,
but if done after you open it an error comes up saying that once the report
is 'printed' the record source cannot be changed.
The SQL that i want it to have come from a query of sub queries that changes
often. I don't suppose I can get just the WHERE part of the SQL and add that
to the 'where' parameter of the docmd.openreport. But it would not let me
filter my form this way, thats why I change the forms record source, so would
it work with the report?
I don't know. Help.