If the form is open when you open the report:
Code the report's Open event:
Me.Recordsorce = forms!FormName!ComboName
Alternatively code an event on the form:
DoCmd.OpenReport "ReportName", acViewPreview
reports!ReportName.RecordSource = Me!ComboName
Wouldn't it be easier to just have just one record source, and use the
Where clause argument of the OpenReport method to filter the records?
For example...
It's simple enough to change the Where clause to whichever field(s)
you want to filter on.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.