I am trying to set a date range parameter in a Crystal report from my VB6 application. I have never done this before. All previous setting of parameters were single value. Can someone shed some light on the approach?
here is sample code of what I am current doing to set parameter values:
Set crParameterFields = crReport.ParameterFields
For Each crParameterField In crParameterFields
With crParameterField
Select Case .ParameterFieldName
Case "Fiscal Year"
.SetCurrentValue (strYear)
Case "Period"
.SetCurrentValue (intPeriod)
Case "Currency"
.SetCurrentValue ("USD")
End Select
End With
Next
here is sample code of what I am current doing to set parameter values:
Set crParameterFields = crReport.ParameterFields
For Each crParameterField In crParameterFields
With crParameterField
Select Case .ParameterFieldName
Case "Fiscal Year"
.SetCurrentValue (strYear)
Case "Period"
.SetCurrentValue (intPeriod)
Case "Currency"
.SetCurrentValue ("USD")
End Select
End With
Next