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!

Passing parameters values to crystal from VB

Status
Not open for further replies.

clydejones

Programmer
Jan 11, 2001
153
US
Hello,

I am using VB6 and crystal8 and am trying to pass a string value to my string parameter in crystal from VB. I am using the ParameterFieldsDefiniton collection (at least trying to) to do this.
Here's a sample of the code. Any suggestions?

' set the ?agency parameter value
If txtAgency = "" Then udtUCRILReport.ParameterFields ("agencyName").SetCurrentValue ("")
Else
udtUCRILReport.ParameterFields("agencyName").SetCurrentValue ("string")
End If

Clyde
 
The syntax is different depending on which of the 4 Integration methods you are using. If you aren't sure, see the FAQ in the General forum on what to include with your question. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top