S
smk23
I would like to change a report's recordsource when certain criteria are met.
Currently my code looks like this:
DoCmd.OpenReport "rptProcSched", acViewPreview
Reports!rptProcSched.RecordSource = "qpAppointmentRequestCCDA"
But I get an error message that the recordsource cannot be changed in
preview view. When can it be changed? What's the best way to do this?
Thanks so much.
Sam
Currently my code looks like this:
DoCmd.OpenReport "rptProcSched", acViewPreview
Reports!rptProcSched.RecordSource = "qpAppointmentRequestCCDA"
But I get an error message that the recordsource cannot be changed in
preview view. When can it be changed? What's the best way to do this?
Thanks so much.
Sam