G
Guest
I have a purchase order form with a cmd button to email the po (report) to
the vendor using the DAO sendobject method. The problem is that the report
sent isn't filterd to include only the current record. The following
corrective code doesn't work:
Dim stRpt as string
Dim rpt as object
stRpt = "purchse order"
set rpt = reports!stRpt
rpt.filteron = true
The "set rpt" statement returns the error that the report isn't open or
doesn't exist. I tried the docmd.reportOpen placed before the set Rpt
statment, but I get the same error, on the same line of code. How to defince
the report variable so that I can use the FilterOn property?
DM
the vendor using the DAO sendobject method. The problem is that the report
sent isn't filterd to include only the current record. The following
corrective code doesn't work:
Dim stRpt as string
Dim rpt as object
stRpt = "purchse order"
set rpt = reports!stRpt
rpt.filteron = true
The "set rpt" statement returns the error that the report isn't open or
doesn't exist. I tried the docmd.reportOpen placed before the set Rpt
statment, but I get the same error, on the same line of code. How to defince
the report variable so that I can use the FilterOn property?
DM