I inserted an unlinked subreport into a main report in Crystal XI. For some reason my subreport takes on the same date parameter prompts as my main report even though it is not linked.
I tried changing the name of the subreport parameters so they weren't the same, but that doesn't help.
Here's the steps I took to add the subreport:
Inserted report footer section RFa;
Insert Subreport>choose existing report (did not link reports);
Placed subreport in RFa.
When I run the report it only prompts me for the date once and it shows the names of each report like this in the parameter box: Start Date/First Date (Apps Process YTD)
I don't know if you need the select statement, so I'm including it anyways:
{cases.office} = "Le" and
{cases.close_date} in {?Begin Date} to {?End Date} and
not ({cases.disposition_status} in ["017", "020"])
And the SQL of the main report:
SELECT `cases`.`office`, `cases`.`close_date`, `cases`.`disposition_status`, `cases`.`number`, `cases`.`problem`, `cases`.`no_callback`, `cases`.`case_county`, `cases`.`case_id`, `users`.`first_name`, `users`.`last_name`
FROM {oj `ablelawo`.`cases` `cases` LEFT OUTER JOIN `ablelawo`.`users` `users` ON `cases`.`user_id`=`users`.`user_id`}
WHERE `cases`.`office`='Le' AND (`cases`.`close_date`>={d '2007-08-01'} AND `cases`.`close_date`<={d '2007-08-31'}) AND NOT (`cases`.`disposition_status`='017' OR `cases`.`disposition_status`='020')
I've had problems with unlinked subreports before, but the last time I sent my report to someone else and they fixed it. I don't know if it's something I'm doing wrong when I'm setting up the reports or when inserting the subreport or if there's a Crystal setting that isn't set right.
Any help will be most appreciated.
I tried changing the name of the subreport parameters so they weren't the same, but that doesn't help.
Here's the steps I took to add the subreport:
Inserted report footer section RFa;
Insert Subreport>choose existing report (did not link reports);
Placed subreport in RFa.
When I run the report it only prompts me for the date once and it shows the names of each report like this in the parameter box: Start Date/First Date (Apps Process YTD)
I don't know if you need the select statement, so I'm including it anyways:
{cases.office} = "Le" and
{cases.close_date} in {?Begin Date} to {?End Date} and
not ({cases.disposition_status} in ["017", "020"])
And the SQL of the main report:
SELECT `cases`.`office`, `cases`.`close_date`, `cases`.`disposition_status`, `cases`.`number`, `cases`.`problem`, `cases`.`no_callback`, `cases`.`case_county`, `cases`.`case_id`, `users`.`first_name`, `users`.`last_name`
FROM {oj `ablelawo`.`cases` `cases` LEFT OUTER JOIN `ablelawo`.`users` `users` ON `cases`.`user_id`=`users`.`user_id`}
WHERE `cases`.`office`='Le' AND (`cases`.`close_date`>={d '2007-08-01'} AND `cases`.`close_date`<={d '2007-08-31'}) AND NOT (`cases`.`disposition_status`='017' OR `cases`.`disposition_status`='020')
I've had problems with unlinked subreports before, but the last time I sent my report to someone else and they fixed it. I don't know if it's something I'm doing wrong when I'm setting up the reports or when inserting the subreport or if there's a Crystal setting that isn't set right.
Any help will be most appreciated.