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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Crystal Reports - setting SQL statement at runtime

Status
Not open for further replies.

johnsun1976

Programmer
Jan 28, 2002
34
CA
Hi.. I'm playing around with Crystal Reports and I'm able to set my SQL command when I'm adding the database on the Crystal Report form, but I'm not sure how to set it in code.. Can someone give me some insight into it?
Thanks
John
 
I don't work with it, so I can't give much detail, but I know this much. You'll need to parameterize a field in the report, and that's the field you'll set from code to be your sql statement. The report will then read from that field in order to set its sql statement.

You might post in the crystal reports forum if you're unsure how to parameterize a field.

wish i could help more...

paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top