Guest_imported
New member
- Jan 1, 1970
- 0
How do you set the recordsource of a report in VB? I tried to set the recordsource before the report is opened and get an error that says the report isn't open.
[Reports]![[RptContacts].Recordsource = "Select..."
DoCmd.OpenReport "RptContacts", acViewPreview
I tried to set the recordsource after the report is opened and get an error that you can't set the recordsource after printing has started.
DoCmd.OpenReport "RptContacts", acViewPreview
[Reports]![[RptContacts].Recordsource = "Select..."
What gives???? Is there a way to open the report without printing it, set the recordsource, and then print?
TIA!
[Reports]![[RptContacts].Recordsource = "Select..."
DoCmd.OpenReport "RptContacts", acViewPreview
I tried to set the recordsource after the report is opened and get an error that you can't set the recordsource after printing has started.
DoCmd.OpenReport "RptContacts", acViewPreview
[Reports]![[RptContacts].Recordsource = "Select..."
What gives???? Is there a way to open the report without printing it, set the recordsource, and then print?
TIA!