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

value/range has already existed 2

Status
Not open for further replies.

jameslx

Programmer
Oct 18, 2001
21
US
I am getting a message saying value/range you are adding has already existed. I am runnung the crystal report using VBscript. I am accessing SQL tables to get parameter values for the report. the error occurs on this line of code.
Code:
crParameter.AddCurrentValue CStr(Trim(ParValue(i)))
 
Have found the anser I was looking for. There are times when crParameter.AddCurrentValue already has a value and if you enter the same value it returns an error message. To correct this you need to enter this code before adding a new value crParameter.ClearCurrentValueAndRange
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top