Background:
I have a VB6 application which uses ADO 2.1 to connect to an Access 2000 database, and subsequently uses Crystal Reports 4.6 for reporting. I need to execute paramaterized queries directly through the Crystal Report, so I have to use an ODBC connection for the Crystal Reports.
My application allows users to interact with a number of site-specific databases, each of which will be based on a template mdb and so will have identical structure (queries and tables), but will have varying data depending on what they retrieve from each database. The same set of Crystal Reports are available for any of the databases that the user has set up, but when a report is run, it must refer to the database the user is currently working with.
Problem:
When referring to an ODBC database through Crystal Reports, you cannot change the database being used only which data source is being used.
I've set up a DSN for each database but how would I go about changing these different DSNs at runtime?
Any ideas out there??
I have a VB6 application which uses ADO 2.1 to connect to an Access 2000 database, and subsequently uses Crystal Reports 4.6 for reporting. I need to execute paramaterized queries directly through the Crystal Report, so I have to use an ODBC connection for the Crystal Reports.
My application allows users to interact with a number of site-specific databases, each of which will be based on a template mdb and so will have identical structure (queries and tables), but will have varying data depending on what they retrieve from each database. The same set of Crystal Reports are available for any of the databases that the user has set up, but when a report is run, it must refer to the database the user is currently working with.
Problem:
When referring to an ODBC database through Crystal Reports, you cannot change the database being used only which data source is being used.
I've set up a DSN for each database but how would I go about changing these different DSNs at runtime?
Any ideas out there??