Crystal Related Problem

  • Thread starter Thread starter Goofy
  • Start date Start date
G

Goofy

Hi,

I am OK with crsytal reports normally VS2003/CR 9.0 but I wanted to use a
parameter to prevent specific columns appearing programmatically. I use a
dropdownbox on the web form to select what parameter I want. Now if I run
the report for the first time with DisplayTotalCost selected, I can see its
effects in the report, If I now select RevexOnly, and run the report again,
this remains as DisplayTotalCost. Its allmost as if it preserves the
viewstate and knows will not allow this to be altered in subsequent
postbacks.

Any ideas would be greatefully accepted

If Me.drpCostbase.SelectedValue = "RevexOnly" Then

crpt.SetParameterValue("DisplayTotalCost", "RevexOnly")

Else

crpt.SetParameterValue("DisplayTotalCost", "DisplayTotalCost")

End If
 
Back
Top