spcepickle
Registered User.
- Local time
- Yesterday, 21:27
- Joined
- Jan 8, 2008
- Messages
- 30
Good afternoon - I have a form that opens a report with a button coded:
stDocName = "CheckWhenReport"
DoCmd.OpenReport stDocName, acPreview
The report opens and the code on load is:
Me.RecordSource = Forms!RequestForm.QName
Then an error box pops up: You can't set the Record Source Property in print preview or after printing has started.
I tried: DoCmd.OpenReport stDocName, acNormal
but it starts printing before I get to see the report and that is not okay.
Any ideas on how I can open the report?
Thanks!
Amelia
stDocName = "CheckWhenReport"
DoCmd.OpenReport stDocName, acPreview
The report opens and the code on load is:
Me.RecordSource = Forms!RequestForm.QName
Then an error box pops up: You can't set the Record Source Property in print preview or after printing has started.
I tried: DoCmd.OpenReport stDocName, acNormal
but it starts printing before I get to see the report and that is not okay.
Any ideas on how I can open the report?
Thanks!
Amelia