Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

print report

Status
Not open for further replies.

vilmarie

Programmer
Feb 10, 2004
41
PR
How I can to set a button to print a report, or What is the code to send to print a report.
 
Private Sub BUTTONNAME_Click()
On Error GoTo Err_BUTTONNAME_Click

Dim stDocName As String

stDocName = "REPORTNAME"
DoCmd.OpenReport stDocName, acNormal

Exit_BUTTONNAME_Click:
Exit Sub

Err_BUTTONNAME_Click:
MsgBox Err.DESCRIPTION
Resume Exit_BUTTONNAME_Click

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top