Is there an equivalent to DoCmd.OutputTo or DoCmd.PrintOut where i pass the form object instead of passing the form name?
I have a form where multiple instances may be opened and so I cannot use the form name as a reference. But the only methods I'm aware of to print a form or save as a pdf require the form name. DoCmd.PrintOut may work but it seems like you need to use DoCmd.SelectObject prior to using it and .SelectObject requires an object name. I attempted to just setfocus to the current instance of the form and then use DoCmd.PrintOut but it didn't work.
I'm open to any solutions regardless of complexity. It would be preferable if the form printed/saved without discounting the form specific print properties as well. For example, I have subforms that are condensed in form view but expand when printed to show all line items.
I have a form where multiple instances may be opened and so I cannot use the form name as a reference. But the only methods I'm aware of to print a form or save as a pdf require the form name. DoCmd.PrintOut may work but it seems like you need to use DoCmd.SelectObject prior to using it and .SelectObject requires an object name. I attempted to just setfocus to the current instance of the form and then use DoCmd.PrintOut but it didn't work.
I'm open to any solutions regardless of complexity. It would be preferable if the form printed/saved without discounting the form specific print properties as well. For example, I have subforms that are condensed in form view but expand when printed to show all line items.
Last edited: