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

passing parameter to cr8

Status
Not open for further replies.

albab

Programmer
Jul 29, 2001
7
MY
hi,
I've try this code to pass parameter to CR8 using RDC in VB5
Some of the code:

Dim CrystalParameter As CRAXDRT.ParameterFieldDefinition

'After refresh the report,
'pass the parameter value to the main report
'Assume the parameter is a number "6"

Set CrystalParameter = CrystalReport.ParameterFields.Item(1)
CrystalParameter.AddCurrentValue "6"

It can't work.Anyone can help me?

Thank's in advance
 
Try:

AddCurrentValue ("6")

Also, I don't think you want to do this after you have refreshed the report. 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