Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Passing parameters to Crystal

Posted on 1998-12-29
2
Medium Priority
?
302 Views
Last Modified: 2010-05-03
I have started using Crystal Reports (version 5 professional) within a VB6 app. by using a Crystal Control.

I can call stand-alone reports quite successfully, however I need to pass parameters to certain reports programatically (Dates, ID's etc)

I know this is possible if I use the Crystal API, but I don't have experience with this. Is it possible with the crystal control without having to set the quirky Crystal SQL statement ?

I would be very grateful for any sample code you may offer.
Thanks in advance.
John
0
Comment
Question by:johnoneill
[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
2 Comments
 
LVL 2

Accepted Solution

by:
Jagar earned 50 total points
ID: 1452907
Just set the SQLStatement property.  You don't have to use Crystal's quirky syntax you can pass it just a regular plain old SQL statement.  One word of caution make sure that the SELECT part contains all the same fields as the report was created with and in the same order.
0
 

Author Comment

by:johnoneill
ID: 6136863
Thanks for the advice, but I need to pass parameters (business logic of the supporting/calling program).

I have since discovered how to pass parameters to Crystal.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

596 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