Hi,
Earlier this week I asked a question about passing parameters into a Crystal report. I am following up the question with the following.
I have 2 field e.g. Allocated To and Sales Total in a VB form.
I have a crystal report that depending on the criteria of the 2 fields prints certain information.
I have entered
Allocated To : Alan Smith
Sales Total : 500
On my crystal report has 2 parameters fields
?Allocated
and
?SalesTotal
.
What I want is that the crystal report parameter fields be automatically populated with the values of the 2 fields.
If I was just doing one parameter it would be like this and this code works
parParameterField.ParameterFieldName = "AllocatedTo"
parParameterValue.Value = "Alan Smith"
parParameterField.CurrentValues.Add(parParameterValue)
parParamFields.Add(parParameterField)
'Assign parameters
MycrRpt.SetParameterValue(parParameterField.ParameterFieldName, parParameterValue.Value)
Question, how do I add another parameter e.g. salestotal