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

Passing parameter value to crystal reports from VB6

Status
Not open for further replies.

prettyangel

Programmer
Sep 2, 2005
38
NG
I have a stored procedure that accepts 2 input parameters.

I designed a report and specified default values for this from crystal reports and it works well, but now I want users to be able to specify values at run time from VB6 environment but all I get is an empty report, I don't know what the problem is, help.

This is the code I used

rpt.StoredProcParam(0) = Trim(Me.cboReportCode.Value)
rpt.StoredProcParam(1) = Me.cboFromPayPeriod.Value
rpt.Action = 1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top