I have an unbound main report that has 6 subreports on it. My report criteria form allows the user to determine many different kinds of ways to view the data that they want. And because the queries for each are totals queries, filtering does me no good - so I have to change the record sources of subreports (through VBA) with a SQL statement.<br><br>Here's the problem, from within the report on the OnOpen event - or even in a standard module - I create the SQL statement to what I want then try to set the recordsource for the appropriate sub report and I get an invalid reference. The sub report is in a group header that I have defined <br><br>Dim strSQL as string<br><br>strSQL = "SELECT somestatement"<br>Reports![rpMainReportName]![rptAppropriateSUb].Report.RecordSource = strSQL<br><br>From within the report it looks like this:<br>Dim strSQL as string<br><br>strSQL = "SELECT somestatement"<br>Me![rpMainReportName]![rptAppropriateSUb].Report.RecordSource = strSQL<br><br><br>I know the SQL statement works - but it seems that ACCESS 2K will no allow me to get to the subreport. I have thought of changing the recordsource on the OnFormat event for the report header but haven't had the chance to try it. Does anyone have a possible solution for this.<br>