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

VB6 and CR 9 Parameters Fields Question ?

Status
Not open for further replies.

hanglam

Programmer
Dec 11, 2002
143
US
Hi. I created a report using VB6 and CR9. The report is based on a Stored Procedure on SQL Server 2000.
My stored procedure requires an input parameter.

My question is :
1. How do you update the parameter field at runtime from within Visual Basic ?
I tried this code but it does not work:

Report.ParameterFields(1).ClearCurrentValueAndRange
Report.DiscardSavedData
Report.ParameterFields(1).AddCurrentValue "2003000301"

msgbox report.ParameterFields1).GetNthCurrentValue(1)


but when I check if the value has been updated/changed I still keep getting the old value.

Any ideas ?

Thanks
Hang




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top