Passing parameters with VB6

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
mhoover
Posts: 4
Joined: Tue Oct 10, 2017 12:44 pm

Passing parameters with VB6

Post by mhoover » Thu Jul 10, 2008 9:04 am

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

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Passing parameters with VB6

Post by kfleming » Thu Jul 10, 2008 9:09 am

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

Best Payday Loan
Posts: 0
Joined: Sat May 05, 2018 10:28 am

==> RE: Passing parameters with VB6

Post by Best Payday Loan » Thu Jul 10, 2008 4:15 pm

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

mhoover
Posts: 4
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Passing parameters with VB6

Post by mhoover » Thu Jul 10, 2008 4:15 pm

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

Post Reply