Solved

Multiple Databases in Crystal 8.5 and VB6 Viewer

Posted on 2006-06-23
4
713 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
  • 3
4 Comments
 
LVL 100

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 100

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 100

Expert Comment

by:mlmcc
ID: 16981071
Glad i could help

mlmcc
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

17 Experts available now in Live!

Get 1:1 Help Now