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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit pages to be e-mailed

Status
Not open for further replies.

ballbearing

Technical User
Jan 7, 2004
43
US
Hello again!

Simple question:

Using code such as

stDocName = "DetailedSummary"
DoCmd.SendObject acReport, stDocName, acFormatHTML, Form_OutstandingBalance.Email, , , "Service Statement"

This particular report creates 2 pages but I only want to send the first page. How can I limit the email to just the 1st page?

Gawd I love this Access stuff..too bad I don't know what I'm doing.
 
There isn't any simple way to do what you ask.

You should modify the report so that it creates the output that you want to email.

An alternative is to export the current report to a .rtf file and edit it in Word, either manually or in code and then email the modified file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top