Forum Discussion
PeterD
Nov 21, 2022Copper Contributor
Printing a form in Access is not working with switch /runtime
Windows 11 / Access 2021 (Version 2210 Build 16.0.15726) Printing a form is well working: DoCmd.SelectObject acForm, Form_MyForm.Name, True then: RunCommand acCmdPrint ' working well with prin...
Nov 21, 2022
Hi,
Your code selects the form in the navigation pane which is not available in the Runtime (mode).
The best solution would be to not print a form but a report which exists for that purpose. If you select the form and File - Save As in the ribbon you can choose to save it as report.
Servus
Karl
************
Access News
Access DevCon
PeterD
Nov 21, 2022Copper Contributor
Thank you, Karl, yes this solution with a report ist working now. But my intention was to avoid extra reports for this purpose.
- George_HepworthNov 22, 2022Silver ContributorThe right tool for the job, though.