?
Solved

Changing database connection at runtime on crystal reports

Posted on 2006-11-07
3
Medium Priority
?
923 Views
Last Modified: 2011-09-20
I would like an example of changing the odbc connection at runtime for crystal reports
i am using vb6, crystal reports 10, sqlserver 2000

i have a connection string that i used to connect to the sql server database
connectionstring = "PROVIDER=MSDASQL;DSN=epics;UID=sa;PWD=moonlite;"

thanks,
bhoward
0
Comment
Question by:BHoward
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
jay_s5 earned 2000 total points
ID: 17900696
You should be able to change the database connection at runtime using the ConnectionProperties collection. I don't use CR anymore, but there used to be a documents folder in your Crystal Reports installation directory with a document called TechRef.pdf that included a description of the ConnectionProperties collection in there.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question