I put a print button on a report. When I click it I get the following error...
The command or action "PrintSelection isn't available now.
My code is
Private Sub Command78_Click()
On Error GoTo Command163_Click_Err
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdPrintSelection
Command163_Click_Exit:
Exit Sub
Command163_Click_Err:
MsgBox Error$
Resume Command163_Click_Exit
End Sub
Does anyone know what this error is?
Thanks...
The command or action "PrintSelection isn't available now.
My code is
Private Sub Command78_Click()
On Error GoTo Command163_Click_Err
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdPrintSelection
Command163_Click_Exit:
Exit Sub
Command163_Click_Err:
MsgBox Error$
Resume Command163_Click_Exit
End Sub
Does anyone know what this error is?
Thanks...