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

E-mailing a report to indicated user

Status
Not open for further replies.

smoker1

Programmer
Jun 18, 2001
76
US
Is there a way to e-mail a report (using Outlook 2000) to the person who filled out a form, as well as to a distribution list? I currently am using a Macro to SendObject to the distribution list, but am confused how to e-mail a copy to the user as well.

For example, if Sally Jones filled out the form, she should get a copy of the e-mailed summary report that is sent out to a distribution list.

Is this possible? Thanks for your assistance!

smoker1

P.S. The report does have a field that has the agent's email address.
 
use that field and jsut distribute it (sendobject) again land of milk and Honey
 
That is definitely what I want to do, but how do I fill the "to" section with a dynamic field name?

 
create a global variable (in a module) and then assign it the fields value, then put that variable into the criteria of the sendobject land of milk and Honey
 
Unfortunately, the code I'm using isn't working.

I simply created a command button that works on the following code:

DoCmd.SendObject acReport, "Witness Dispute Form", acFormatRTF, "[E-mail]; CSC TLs (Reports)", , , "Current Witness Disputes", , False

I haven't had to work with many VB strings (as I generally work in Java & JavaScript), and am not sure what I am missing. The field name that contains the e-mail address of the user is named e-mail.

Can you provide me with a little more detail, crose7227? Thank you!
 
change this

"[E-mail]; CSC TLs (Reports)"...

to this

tablename.[E-mail] & ";CSC TLs (Reports)"

and when you say ur code isn't working what kind of error do you get?


or it just doesn't send? land of milk and Honey
 
I am receiving a run-time error '2295'. Unknown message recipient(s). Message not sent.

This is my code:
DoCmd.SendObject acReport, "Witness Dispute Report", acFormatRTF, "tblAgents.Agent E-mail Address" & "; CSC TLs (Reports)", , , "Current Witness Disputes", , False


Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top