Solved

Crystal Reports

Posted on 1998-11-11
3
172 Views
Last Modified: 2010-04-30
If have to select information from two different tables,to display the information on crystal rep.
For the first part of the report I run a querydef from visual basic to display the information for the query, then for the second part of the report I inserted database fields directly on the report.

Here is the problem, when run only the querydef from visual basic it displays the information for the first part of the report, but once I insert the databasefields on the report it somehow cancels the querydef and only displays the second part of the information for the diretcly linked databasefields in crystalreports.
0
Comment
Question by:gerhd
  • 2
3 Comments
 

Author Comment

by:gerhd
Comment Utility
The problem is diplaying values in one crystalreport for a querydef ran in visual basic and  directly linked databasefields in crystalreports. I use an MS Access database and the querydef I call is a query written in Access. I also set different parameters in the querydef.
0
 

Author Comment

by:gerhd
Comment Utility
Adjusted points to 150
0
 

Accepted Solution

by:
rscott_young earned 150 total points
Comment Utility
Here are a couple of ideas:

1)  Is there a logical link between the two tables?  If so, then you could link the tables, pass just the one SQL query to Crystal, and display the fields accordingly.

2)  You could create a sub-report in Crystal to display the second set of data below the first.

Hope this helps!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

771 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

11 Experts available now in Live!

Get 1:1 Help Now