G
Guest
hello
I have a form (frmMonthlyRegimen) with a combobox whose AfterUpdate event
sets the Form's RecordSource (called strMR_SQL). The code is fairly lengthy
and runs a bit slowly, but it works perfectly fine. Now, the command button
that is used to open this form has a line of code... DoCmd.OpenForm
("MonthlyRegimen").
I would like the button to ALSO open a report (rptMonthlyRegimen) that has
the same RecordSource as the form does. But, I don't want to waste time by
having it recalculate the record source. What is a good way to pass the
records source to the report just after the form gets it?
thanks
I have a form (frmMonthlyRegimen) with a combobox whose AfterUpdate event
sets the Form's RecordSource (called strMR_SQL). The code is fairly lengthy
and runs a bit slowly, but it works perfectly fine. Now, the command button
that is used to open this form has a line of code... DoCmd.OpenForm
("MonthlyRegimen").
I would like the button to ALSO open a report (rptMonthlyRegimen) that has
the same RecordSource as the form does. But, I don't want to waste time by
having it recalculate the record source. What is a good way to pass the
records source to the report just after the form gets it?
thanks