Solved

Changing database connection at runtime on crystal reports

Posted on 2006-11-07
3
917 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
3 Comments
 
LVL 2

Accepted Solution

by:
jay_s5 earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now