Print One Page of Report Only

  • Thread starter Thread starter Dave Elliott
  • Start date Start date
D

Dave Elliott

DoCmd.OpenReport stDocName, acNormal, , stLinkCriteria
DoCmd.PrintOut acPages, Pages, 1, Pages, 1

I tried using this code , but of course it wont work.
I want to open the Report which is named InvoiceReport and print the current
page only.
Then close the Report after.

What am I doing wrong ?

Thanks,


Dave





All MailAll Mail & Attachments Scanned by Norton Antivirus 2003 !
 
Syntax

DoCmd.PrintOut [printrange][, pagefrom, pageto][, printquality][, copies][,
collatecopies]

Try...
DoCmd.PrintOut acPages, 1, 1
--

peter walker MVP

Please post replies to the news group so everyone can benefit.
www.papwalker.com
 
Thanks,

Dave
peter walker said:
Syntax

DoCmd.PrintOut [printrange][, pagefrom, pageto][, printquality][, copies][,
collatecopies]

Try...
DoCmd.PrintOut acPages, 1, 1
--

peter walker MVP

Please post replies to the news group so everyone can benefit.
www.papwalker.com

Dave Elliott said:
DoCmd.OpenReport stDocName, acNormal, , stLinkCriteria
DoCmd.PrintOut acPages, Pages, 1, Pages, 1

I tried using this code , but of course it wont work.
I want to open the Report which is named InvoiceReport and print the current
page only.
Then close the Report after.

What am I doing wrong ?

Thanks,


Dave





All MailAll Mail & Attachments Scanned by Norton Antivirus 2003 !
 
Back
Top