G
Guest
I have created a recordset which I would like to use as the recordsource of
the report. I can't make the report open using it. Here is the code I am
using:
Set rst = New ADODB.Recordset
DoCmd.OpenReport "rptActsDaily", acViewPreview
Set Reports("rptActsDaily").Recordset = rst
I get an error saying I can't set the recordsource property after the report
has opened. That makes sence so I set the recordsource first and get an error
saying the report is not open. So how do you open a report using a recordset
as the recordsource?
the report. I can't make the report open using it. Here is the code I am
using:
Set rst = New ADODB.Recordset
DoCmd.OpenReport "rptActsDaily", acViewPreview
Set Reports("rptActsDaily").Recordset = rst
I get an error saying I can't set the recordsource property after the report
has opened. That makes sence so I set the recordsource first and get an error
saying the report is not open. So how do you open a report using a recordset
as the recordsource?