Kaveh_1972
10-19-2004, 07:04 AM
Hi,
I’m using CRP 9.02 to create reports in my program. I want to use a variable in my program such as "strCustomer_name" and send it to each report for using in report title. I declare a Parameters in report and named it cuname1 and then in the program I use this code:
1: Dim rpt2 As New crpReminderReport
2: rpt2.cuname1.Value = strCustomer_name
3: rpt2.Database.SetDataSource rstReport
4: rpt2.PrintOut True
When I run the program I get this error message on line 2: “Error 424: Object required”
How can I use this method to put my customer name on title of my reports?
Thank you
I’m using CRP 9.02 to create reports in my program. I want to use a variable in my program such as "strCustomer_name" and send it to each report for using in report title. I declare a Parameters in report and named it cuname1 and then in the program I use this code:
1: Dim rpt2 As New crpReminderReport
2: rpt2.cuname1.Value = strCustomer_name
3: rpt2.Database.SetDataSource rstReport
4: rpt2.PrintOut True
When I run the program I get this error message on line 2: “Error 424: Object required”
How can I use this method to put my customer name on title of my reports?
Thank you