Solved

Passing parameters to Crystal

Posted on 1998-12-29
2
295 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 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

19 Experts available now in Live!

Get 1:1 Help Now