Help!!!
I use Crystal 8.5 and VB 6.0
I have a report that uses a stored procedure for the main portion. I have about 17 sub-reports that are linked to data from this main stored procedure. Upon creating all of my reports, I follow the standard of doing a "Set Location" and removing any indications of a server name.
ie: From: SERVER_NAME.dbo.Proc(StoredProcedureName)
To: Proc(StoredProcedureName)
I have done this for both the main report AND all of my sub-reports. For those sub-reports that use more than one table, I have done this for EACH table.
My sub-reports are linked properly to the main report.
If I open my report in Crystal and run it, I can enter any parameter information I need to. Then, it has me log onto the server. (Which is a good indication that my "Set Locations" successfully removed any server names.) I log on once and it produces the report beautifully. It works 100% through VB.
My PROBLEM?!?! Now, I try to run my report to access data from a different server. If I do it thru VB, the main portion returns info fine. It's the sub-reports that do not appear correctly! NONE of them return the data they are supposed to.
So, I open the report in Crystal, run it, and enter my parameter values. When it asks me to log into the server, I do so. Then, it asks me to log on 17 more times for each sub-report!!! Why does this do that? When I log onto the server I used to originally create the report, it only asks me once???
Okay, if I do a Verify Database and select the new server and log on 18 times (once for main, 17 for each sub-report) and save my report and THEN use VB, it is FINE! I am completely baffled... Is there a setting I am missing that is supposed to tell the sub-reports to use the same server as the main report?
I have to roll these reports out to 20-30 client sites, each with different server names! It is not a production thing for me to have to do a "Verify Database" for each client each time we roll out new reports...
Please, I hope somebody can help me! Thank you in advance!!!
Jolynn
I use Crystal 8.5 and VB 6.0
I have a report that uses a stored procedure for the main portion. I have about 17 sub-reports that are linked to data from this main stored procedure. Upon creating all of my reports, I follow the standard of doing a "Set Location" and removing any indications of a server name.
ie: From: SERVER_NAME.dbo.Proc(StoredProcedureName)
To: Proc(StoredProcedureName)
I have done this for both the main report AND all of my sub-reports. For those sub-reports that use more than one table, I have done this for EACH table.
My sub-reports are linked properly to the main report.
If I open my report in Crystal and run it, I can enter any parameter information I need to. Then, it has me log onto the server. (Which is a good indication that my "Set Locations" successfully removed any server names.) I log on once and it produces the report beautifully. It works 100% through VB.
My PROBLEM?!?! Now, I try to run my report to access data from a different server. If I do it thru VB, the main portion returns info fine. It's the sub-reports that do not appear correctly! NONE of them return the data they are supposed to.
So, I open the report in Crystal, run it, and enter my parameter values. When it asks me to log into the server, I do so. Then, it asks me to log on 17 more times for each sub-report!!! Why does this do that? When I log onto the server I used to originally create the report, it only asks me once???
Okay, if I do a Verify Database and select the new server and log on 18 times (once for main, 17 for each sub-report) and save my report and THEN use VB, it is FINE! I am completely baffled... Is there a setting I am missing that is supposed to tell the sub-reports to use the same server as the main report?
I have to roll these reports out to 20-30 client sites, each with different server names! It is not a production thing for me to have to do a "Verify Database" for each client each time we roll out new reports...
Please, I hope somebody can help me! Thank you in advance!!!
Jolynn