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!

pls help-Passing Parameter to Crystal RDC (.dsr file , not .rpt file)

Status
Not open for further replies.

dennisds

Programmer
Mar 22, 2003
3
IN
I am using crstal rdc (crystal Report designer control - ie .dsr file & not .rpt file ) for reporting. Can you pls tell me how to pass the parameter from a VB form to this report designer.

I dont want to use the inbuilt feature of RDC for parameter fields.I mean I want to avoid the screen which comes after adding a parameter field to the report.

I want to pass the parameter through code.

Basically I sort the data monthwise as follows.

select * from payroll where payroll.month = ? and payroll.year= ?

I take the input from a form which has two combo boxes. ie

a) cmbMonth
b) cmbYear

I want to pass the text as month & year to the query above.

I can add a parameter field in Crystal RDC but I am forced to use the inbuilt feature of CRYSTAL to select the parameter. I dont want to use the inbuilit feature . How to disable the inbuilt feature & pass the parameter though code ?

Pls help, I am desperately looking for some solution.

Regards,
Dennis.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top