Click to See Complete Forum and Search --> : How do you pass a RecordSelectionFormula to a subreport at runtime


Kevin
11-20-2002, 04:26 PM
I am having problems accessing a subreport in code. I am trying to pass a
RecordSelectionFormula at runtime, but I cannot even see the subreport in
code?

Thanks for you help

Kevin
11-20-2002, 04:31 PM
I got it :

sub_rpt = rpt.OpenSubreport("zRENTRentItemHistory Rentals.rpt")
sub_rpt.RecordSelectionFormula = "{Rental_Items.Rent Item ID} = " &
cboItemRef.Text