I’m trying to set up the printer button on my form, I want it to allow the user to select a printer when you try to print the report. I know that the code for this is
However, I don’t know where to fit it into the current code that automatically prints out that report:
Thanks
Sunny
Code:
“DoCmd.RunCommand acCmdPrint”
Code:
Private Sub Print_Click() On Error GoTo Err_Print_Click Dim stDocName As String stDocName = "Result_Set" DoCmd.OpenReport stDocName, acNormal Exit_Print_Click: Exit Sub Err_Print_Click: MsgBox Err.Description Resume Exit_Print_Click End Sub
Sunny
Comment