I'm having trouble passing a parameter through my VB6 application. The current code I inherited does this:
For Each p in Report.ParameterFields
If p.Name = "{?a}" then
p.AddCurrentValue CDate(Format$dteDate.Value, "MM/DD/YYYY")
End if
'repeated for many others
Next
I added a new parameter to the report. With this parameter, it seems to already have a current value set by the time it gets to this section of code. None of the other paramters do. How can I change the value or what do I do to the report to make it not have a current value (it doesn't even have a default value, and the current value being set automatically is the current date)?
For Each p in Report.ParameterFields
If p.Name = "{?a}" then
p.AddCurrentValue CDate(Format$dteDate.Value, "MM/DD/YYYY")
End if
'repeated for many others
Next
I added a new parameter to the report. With this parameter, it seems to already have a current value set by the time it gets to this section of code. None of the other paramters do. How can I change the value or what do I do to the report to make it not have a current value (it doesn't even have a default value, and the current value being set automatically is the current date)?