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

Passing string parameters from VB to Crystal

Status
Not open for further replies.

Smitty020

MIS
Jun 1, 2001
152
US
I'm trying to pass a string parameter from VB6 to Crystal. Here's what I've got:

Set app = CreateObject("Crystal.CRPE.Application")
Set report = app.OpenReport(rname)

' From and To are the respective names of the (string type) parameter fields.

report.ParameterFields(0) = "From;Val;TRUE"
report.ParameterFields(1) = "To;Val;TRUE"


I keep getting a Type Mismatch 13 Error!

Any ideas?

Thanks in advance!

-Smitty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top