T
tdhelge
OK Guys, I need a little help here and I know this is a simple fix but I'm
obviously over looking the problem. All I want to do is add a print button to
the bottom of my form to print out the current customer workorder. Here is
what I have for the VB code under the "On_click" event
Private Sub Command18_Click()
On Error GoTo Err_Command18_Click
DoCmd.PrintOut
DoEvents
DoCmd.Close
Exit_Command18_Click:
Exit Sub
Err_Command18_Click:
MsgBox Err.Description
Resume Exit_Command18_Click
End Sub
Command_18 it the print button itself. I would also like it to NOT have the
"Print" button show on the printed document.
Any ideas what I'm doing wrong here?
obviously over looking the problem. All I want to do is add a print button to
the bottom of my form to print out the current customer workorder. Here is
what I have for the VB code under the "On_click" event
Private Sub Command18_Click()
On Error GoTo Err_Command18_Click
DoCmd.PrintOut
DoEvents
DoCmd.Close
Exit_Command18_Click:
Exit Sub
Err_Command18_Click:
MsgBox Err.Description
Resume Exit_Command18_Click
End Sub
Command_18 it the print button itself. I would also like it to NOT have the
"Print" button show on the printed document.
Any ideas what I'm doing wrong here?