Solved

Change the location of a DB in a report of CR 8

Posted on 2001-08-05
7
162 Views
Last Modified: 2010-05-02
How can I change the location of a database in a Report of CR 8.5 at runtime?
0
Comment
Question by:macob
[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
  • 2
  • 2
7 Comments
 
LVL 12

Expert Comment

by:roverm
ID: 6352928
Two ways:

First:
You can use a DSN.
Create one in your control panel (or admin tools in w2k) and let CR connect to that.
If your path changes, just alter the DSN.

Second:
Build a connect string dynamicly and let CR connect to that string.
You can read the location of the db from the registry or let the user input it.

I prefer using the DSN.

D'Mzzl!
RoverM
0
 

Author Comment

by:macob
ID: 6354343
Could you give me an example of how to make both?
I'll upgrade to 100 points
0
 

Author Comment

by:macob
ID: 6369116
any help?
0
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!

 
LVL 12

Expert Comment

by:roverm
ID: 6370120
Sorry, didn't have much time lately...

I can give you an example for DataReport.
As far as I remember (I don't use CR anymore !) it worked approx. the same.
Is that ok with you ?

D'Mzzl!
RoverM
0
 
LVL 12

Accepted Solution

by:
roverm earned 100 total points
ID: 6419690
macob:
Is your problem solved ?
Can I help you any further ?

D'Mzzl!
RoverM
0
 
LVL 3

Expert Comment

by:modder
ID: 6452479
macob,

I believe roverm gave you a solution to your problem. I see that you were looking to delete this question.

If roverm's suggestions didn't solve your problem, can you tell us why? Otherwise I think it would be appropriate to accept roverm's comments.

modder
Community Support Admin
0
 
LVL 3

Expert Comment

by:modder
ID: 6484773
Force-Accepted

modder
community Support
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 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