Solved

Multiple Databases in Crystal 8.5 and VB6 Viewer

Posted on 2006-06-23
4
738 Views
Last Modified: 2012-06-27
Hello,

I have to 2 applications:  MAS200 and Sage CRM.  They use a Providex DB and a SQL DB respectively.  I have a crystal report that pulls information from both of these databases using ODBC and it works well.

I am trying to add the crystal report viewer functionality to a VB6 toolbar for users to run their own reports.  Everything works fine when I only run a report that uses the SQL DB.  But as soon as I try to run a report that uses both DB's, i get a "Server has not yet been opened".

I tried using the .Database.LogonServer and it only works for the SQL ODBC Connection

Set report = crapp.OpenReport(myreport)
    report.Database.LogOnServer "p2sodbc.dll", "Sage CRM", , "sa", "password"
    report.Database.LogOnServer "p2sodbc.dll", "SOTMAS90", "SAM", "adm", "password"

Is this even Doable?  If so, can anyone help me please!!!  I need to put both DB's information on one report!

MANY MANY THANKS TO ANY HELP!!
0
Comment
Question by:posae
[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
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 16973762
Not in the way you are trying to do it.

Crystal doesn't handle multiple data sources very well especially if they are from different databases or data base types as in this case.

You can build the report against one of the data sources and use a subreport for the other source.

You could build a basically empty report and use 2 subreports, one for each data source.

You could link the tables in one of the databases into the other thus having a single datasource.

mlmcc
0
 

Author Comment

by:posae
ID: 16975010
Hi mlmcc!  Thanks for your time.

I do have these set up as sub reports.  You mentioned linking the tables in one database, what does this mean?  

THanks!
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 16975878
With some databases you can link to other databases.  Check with your DBA.

I don't know if these are compatible or not.  You maight also be able to use Access to link the tables into a new database.

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 16981071
Glad i could help

mlmcc
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

724 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