Solved

Multiple Databases in Crystal 8.5 and VB6 Viewer

Posted on 2006-06-23
4
735 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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. …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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