I have a command button that opens a report okay. The code is:
Private Sub Command13_Click()
DoCmd.OpenReport "TLG", acViewDesign, , , acHidden
Reports("TLG").RecordSource = Me.LP.RowSource
DoCmd.Close acReport, "TLG", acSaveYes
DoCmd.OpenReport "TLG", acViewPreview
End Sub
How can I add another button alongside that will print the report?
Many thanks
Private Sub Command13_Click()
DoCmd.OpenReport "TLG", acViewDesign, , , acHidden
Reports("TLG").RecordSource = Me.LP.RowSource
DoCmd.Close acReport, "TLG", acSaveYes
DoCmd.OpenReport "TLG", acViewPreview
End Sub
How can I add another button alongside that will print the report?
Many thanks