Solved

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

Posted on 2001-08-05
7
163 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

705 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