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

Passing Report Parameters

Status
Not open for further replies.

kevstar

Programmer
Nov 21, 2001
109
GB
I am trying to pass a parameter from VB to crystal. I used the
[reportname.]ParameterFields(0)= "paramname;paramdata;TRUE"

I was under the impression that with the command TRUE at the end it would not prompt for the information, it just passes the paramdata straight into the report. THis does not seem to be the case, the prompt still appears. If I use the TRUE statement the prompt box is blank, but if I use the FALSE statement then the prompt box is populated with paramdata.

The problem is that I dont want the prompt box to appear at all. I want VB to pass the parameter straight into the report. Any ideas how to do this would be greatfully appreciated.
 
CrxReport.ParameterFields.GetItemByName ("parametername").AddCurrentValue parametervalue

I woud sugest you to see some sample code in the samples folder of Crystal Reports or download some from crystal site.
 
I think I found the problem. I had the discardsaved data set to true, changed this to false and it seems OK now

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top