Page 1 of 1

Passing parameters with VB6

Posted: Thu Jul 10, 2008 9:04 am
by mhoover
Hello, ____I have a small interface I built with VB6. I^m using the R&R.ocx, and I^m not sure how to code to pass text info to the report. I have an RIPARAM calculated field on the report to test. I see a tab on the control properties for User Parameters, but unclear how to use it.____Any help or examples would be appreciated.____Kind Regards,__MH

=> RE: Passing parameters with VB6

Posted: Thu Jul 10, 2008 9:09 am
by kfleming
You can set the parameter value in the code that you use to launch the report.__Here is the example from the help file on using the parametersString property.____RRReport1.ParametersString = "Title=Cumulative Earnings"____In your report you would have a calculated field with the expression:__RIPARAM("Title")____when you run the report through the custom control, the value of this field would be "Cumulative Earnings"____Kathleen__R&R Support

==> RE: Passing parameters with VB6

Posted: Thu Jul 10, 2008 4:15 pm
by Best Payday Loan
Thank you for your quick response,____We have an old version of R&R, I think that it^s ver 8. I^m not sure what help file your referring to?? The example worked just fine, but I want to pass some user input from a text box.____Thank you for your Help!!____Kind Regards,__Michael

=> RE: Passing parameters with VB6

Posted: Thu Jul 10, 2008 4:15 pm
by mhoover
I don^t know if you had seen my second reply, I was wondering if you could show me how to code to pass user input from a text box to an RIPARAM ____Thank you for your help,__Mike Hoover