?
Solved

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

Posted on 2001-08-05
7
Medium Priority
?
167 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
  • 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
Technology Partners: 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 400 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month16 days, 11 hours left to enroll

862 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