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!

how to pass the parameters values from VB?

Status
Not open for further replies.

nmmure

Programmer
Jun 8, 2006
200
US
Hi,

How to pass the parameter values from VB6.0 to crystal reports 10.

User values i need to send to rpt file.

please help me any one.

Mure
 
This code passes Start and End date parms to Crystal.
Crystal has two parms named VBSTART and VBEND

Code:
'Start Date ParameterFields
strStart = "Date" 
CRRPT.ParameterFields(1) = "VBSTART;" & strStart & ";True"
  
'End Date ParameterFields
strEnd = "Date" 
CRRPT.ParameterFields(2) = "VBEND;" & strEnd & ";True"

Of course the "Date" is whatever you are getting in your VB app that you want to pass in.

Monkeylizard
Sometimes just a few hours of trial and error debugging can save minutes of reading manuals.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top