I am using a PRINT button in form of access 2003 to print 1st page of the Hospital OPD report name "opd_rpt".
The associated code is as below:
Private Sub Toggle100_DblClick(Cancel As Integer)
DoCmd.OpenReport "opd_rpt", acViewPreview
DoCmd.PrintOut acPages, 1, 1
DoCmd.Close acReport, "opd_rpt"
End Sub
The problem is that I want to print only the last page of this report.
Can anyone advise code for the same or change in above code.
Thankx