cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh Report does not use parameter value I just set it

Former Member
0 Kudos

I am running Crystal Reports Basic for Visual Studio 2008.

I would like to dynamically refresh my report based on a parameter.

For instance, I'll have a customer contract and I want to switch between customers based on a VB.NET winform button click.

I was expecting the code below to work, but I keep getting the "Enter Parameter Values" dialog box, why isn't it using the parameter value that I just set it?

-


CustomerReport1.SetParameterValue("CustomerID", txtCustID.Text)

CrystalReportViewer1.RefreshReport()

Accepted Solutions (1)

Accepted Solutions (1)

former_member184995
Active Contributor
0 Kudos

The refresh is probably blowing out the parameter you just set.

Dont use .refresh.

Just set the parameter and then set the reportsource to the report.

Jason

Former Member
0 Kudos

Thanks Jason

Answers (0)