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

Passing Multiple Value Parameter from VB6 to Crystal 8?

Status
Not open for further replies.

kmcclung

Programmer
Nov 20, 2001
120
US
I have a report created in v.8 with 3 parameter fields, one of which "Allows Multiple Values". I need help with the syntax to pass the multiple values from a VB6 app to generate the report. BTW - I'm not using RDC.
Any ideas????
 
You're using the OCX? I don't know that you can pass multiple values with the OCX.
 
I'm wondering about trying to pass the SQL to Crystal from VB, instead of using the parameter fields. Any thoughts?
 
Yes, you can certainly do that.

Get the parameters via a VB form, build the SQL string, and set the .SQLQueryString property with the SQL statement before executing the report.
 
You might also consider passing a recordset to the report. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top