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

Changing CurrentValue in Crystal 10 parameters with VB6

Status
Not open for further replies.

briktal

Programmer
Oct 11, 2007
9
0
0
US
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)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top