But when the database name changes, you need to give that information to the subreport. Work with the code I posted to do that.
>The report works fine when I run it on the database that it was created on. So I know all the sub-report paramters are set right, the problem only happens when the database name changes !
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer