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

email, sending copies

Status
Not open for further replies.

niteraven

Technical User
Oct 26, 2006
92
US
hi all

I have a form that i have a command button on to send a report thru email. The following code is outputting the email in RTF format, and all is good, except the Report it sends is an exact copy of the one report 5500 times. IE it keeps on repeating the report over and over again until it makes a 9 meg rtf file as an attachment.

Code:
DoCmd.SendObject acReport, "rptemailcustomer", acFormatRTF, email, , , emsubject, emailmemo

any ideas?
thanks
Raven

 
It sends one e-mail that big? If it is a bunch of e-mails, post the whole procedure.

Try using...

Code:
docmd.openreport "rptemailcustomer"

That will verify if the report is what you expect it to be.
 
Thank you lameid!

I found out that i had used the table as the control source when i was adding fields, and did not make the controlsource blank afterwards. I am pulling info from a form.

Raven
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top