Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a report using dynamic sql

Status
Not open for further replies.

sk8er1

Programmer
Jan 2, 2005
229
US
I have a form where the user selects zip code, city etc..and build a dataset on the fly that loads a datagrid.
How can I use that dataset for a crystal report.
 
I am looking at the COALESCE function, I will try to build a stored procedure and create the dataset for the crystal report. If that does not work....HELP!!! Am I on the right track?
 
I have built a selection criteria form. There are several text boxes which are filled and a SQL statement is built and a dataset created on the sql statement. Then I load that dataset into a datagrid. It works fine. I want to use that same dataset for a Crystal Report. How can I do that.
 
Which Crystal? You can include the Stored Procedure along with other tables, though usually this needs a subreport because Crystal doesn't let you mix them directly.

In Crystal 10, use Database Expert, select a database but then use [Add Command] to add your SQL code.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top