It should be:
oCrReport.ParameterFields.Item(1).SetCurrentValue("MyValue")
>I'm using Crystal 9 with fox2x tables. The data is refreshed fine. However, I'm having problems setting the parameters. This is the code I'm using:
>
>oCrReport.ParameterFields(1).SetCurrentValue("MyValue")
>
>Everytime I call the export, I'm Prompted for the values. I tried setting EnableParameterPrompting to false, but this did not help. I checked the parameters in the report to make sure they are not read only. The code worked fine in 8.5.
>
>Any ideas?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer