SpandexBobcat
Technical User
Hi folks,
I have been trying to print a form but with limited success... I have a continuous form (frmEngReq) based on a query (qryEng_Wk/Req) which shows jobs that have yet to be printed out, with each record having a print button. In the OnLoad event of the form I have another form opening (frmSheet), set to invisible.
What I want to happen is when one of the print buttons is pressed, frmSheet takes on the data associated with the print button and then frmSheet prints.... All is working apart from the wrong form is printing...
I have been trying to use the DoCmd.PrintOut acSelection command but it prints out frmEngReq instead. How do I set the focus to this invisible form (frmSheet) when the print button is pressed?
Thanks in advance,
SB
"If at first you don't succeed, destroy all evidence that you tried.
I have been trying to print a form but with limited success... I have a continuous form (frmEngReq) based on a query (qryEng_Wk/Req) which shows jobs that have yet to be printed out, with each record having a print button. In the OnLoad event of the form I have another form opening (frmSheet), set to invisible.
What I want to happen is when one of the print buttons is pressed, frmSheet takes on the data associated with the print button and then frmSheet prints.... All is working apart from the wrong form is printing...
I have been trying to use the DoCmd.PrintOut acSelection command but it prints out frmEngReq instead. How do I set the focus to this invisible form (frmSheet) when the print button is pressed?
Thanks in advance,
SB
"If at first you don't succeed, destroy all evidence that you tried.