M
Miranda
hi,
i've got a form which can have muliple instances open - this/these forms
open a report in preview format through a button on click command
i've got the docmd.openreport....which all works fine but i want to set the
reports record source from the forms "openReport" button procedure.
now i've tried
reports!myReport.recordsource = " select....." before and after the
docmd.open...command but i get an error message saying the report is not
open yet if i put it before and if i put it after i get you cannot set the
recordsource of a report opened in preview format....
when can i set the recordsource? i can't do it in the reports onOpen command
because i need values that are on the open report form and there are
possibly muliple instances of the form open and i can't refer to it as
forms!reportPage!....
hope somebody can shed some light!
ta, miranda
i've got a form which can have muliple instances open - this/these forms
open a report in preview format through a button on click command
i've got the docmd.openreport....which all works fine but i want to set the
reports record source from the forms "openReport" button procedure.
now i've tried
reports!myReport.recordsource = " select....." before and after the
docmd.open...command but i get an error message saying the report is not
open yet if i put it before and if i put it after i get you cannot set the
recordsource of a report opened in preview format....
when can i set the recordsource? i can't do it in the reports onOpen command
because i need values that are on the open report form and there are
possibly muliple instances of the form open and i can't refer to it as
forms!reportPage!....
hope somebody can shed some light!
ta, miranda