I have two .rpt files that I created using crystal report. They were automated with VB6 to run every week (i used the RDC method). I am running Crystal 8.5. Anyways, they were always ran together, so we finally just combined them by making them both subreports under a blank report. Therefore, we basically get two reports in one file.
Now I'm having problems with the automation part. I linked all the parameters (basically the same in both), and I'm not having any problem with that, but I'm having a problem getting the second subreport to connect to the database (that's my guess, because it shows up blank when the first one works correctly). How do I get the second supreport to log on to the database? The database info is the same for both, here's my log on code now:
Set Report = crxApplication.OpenReport(strReportName, 1)
crxApplication.LogOnServer "pdsodbc.dll", strServer, strTable, strUser, strPwd
It's the same code I used when I had one report... and it seems to work for the first subreport, but not the second, thanks in advance,
Jacob438
Now I'm having problems with the automation part. I linked all the parameters (basically the same in both), and I'm not having any problem with that, but I'm having a problem getting the second subreport to connect to the database (that's my guess, because it shows up blank when the first one works correctly). How do I get the second supreport to log on to the database? The database info is the same for both, here's my log on code now:
Set Report = crxApplication.OpenReport(strReportName, 1)
crxApplication.LogOnServer "pdsodbc.dll", strServer, strTable, strUser, strPwd
It's the same code I used when I had one report... and it seems to work for the first subreport, but not the second, thanks in advance,
Jacob438