Barbara265
Technical User
I have a report that contains several sub-reports. This report retrieves benefit enrollments for employees. The main report contains employee level information (name, SSN, etc.) and the sub-reports each return data about a specific benefit enrollment for every employee. The sub-reports are linked to the main report via a unique employee level identifier. The original version of this report works just fine as it is, but I need to modify both the main report and all the sub-reports so the report returns data about a different group of employees in another company. This change involves a simple modification to the SQL statement in the main and all the sub-reports. Here is a snippet of the code that needs to be changed...
EBase.EbPSID = 'Q10' AND
This is one of several parameters in the WHERE clause of the SQL query, but is the only one I need to change. I modified it to read 'Q17' in the main report and all the sub-reports and saved the changes. When I run the report after making the changes it's as though the link between the sub-reports and main report are broken. I see multiple rows of data for an employee where there should only be one and/or I see the same amount returned for every employee rather than the actual employee amount.
I have tried relinking the sub-reports after I make the necessary changes, but that doesn't seem to fix the problem. Is there some standard way to modify reports that contain sub-reports so the linking doesn't become an issue?
Thanks.
EBase.EbPSID = 'Q10' AND
This is one of several parameters in the WHERE clause of the SQL query, but is the only one I need to change. I modified it to read 'Q17' in the main report and all the sub-reports and saved the changes. When I run the report after making the changes it's as though the link between the sub-reports and main report are broken. I see multiple rows of data for an employee where there should only be one and/or I see the same amount returned for every employee rather than the actual employee amount.
I have tried relinking the sub-reports after I make the necessary changes, but that doesn't seem to fix the problem. Is there some standard way to modify reports that contain sub-reports so the linking doesn't become an issue?
Thanks.