G
Guest
Hi there,
I have one form that, depending on where it is opened from, will have a specific query opened.
I want to do the same thing for a report, but am not having much success. I have tried this on the On_click event:
docmd.openreport "rptExpiredAgreement",acPreview,,me.recordsource = "qryReportExpiredAgreementArea"
I get a runtime error 2501. can anyone help me on this one?
Many thanks and happy christmas.
Carlee
I have one form that, depending on where it is opened from, will have a specific query opened.
I want to do the same thing for a report, but am not having much success. I have tried this on the On_click event:
docmd.openreport "rptExpiredAgreement",acPreview,,me.recordsource = "qryReportExpiredAgreementArea"
I get a runtime error 2501. can anyone help me on this one?
Many thanks and happy christmas.
Carlee