Passing Parameter to Report

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

Passing Parameter to Report

Post by Robert_(Guest) » Fri Jul 08, 2005 4:49 pm

I am using ReportWorks Latest version, and vb6__I need to send a character parameter to a report which may__vary each time the report is printed. I am unable to put it in a table__as the system is multi user.__The Control is called Report1.____I have set up a calculated field called Rn2__? How do i send say "Cabbage" to the report__? Report1.ReportName="Rep6"__? Report1.???????????? Rn2 = "Cabbage" (is is something like this?)______Regards Robert

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

=> RE: Passing Parameter to Report

Post by kfleming » Sat Jul 09, 2005 10:50 am

Change the expression of Rn2 in the report to be:__RIPARAM("forRn2")____Then in the control use:__Report1.Parameters(0)="forRn2=Cabbage"____When you execute the report the value of the calculated field will then become Cabbage.____Kathleen__R&R Support__

Robert_(Guest)
Posts: 12
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Passing Parameter to Report

Post by Robert_(Guest) » Sat Jul 09, 2005 6:44 pm

Kathleen,__Thanks for your help, this worked fine.__Regards Robert

Post Reply