Solved

Send attatcment without opening report

Posted on 2012-03-28
3
297 Views
Last Modified: 2012-08-13
I have created a routing system for approvals of a budget request in Access.  The user enters a request and clicks on button and a pdf attachment of the request is sent to the first person on the routing list.  The first person in the routing liset sends an email back saying that it has been approved.  The database reads the data from Outlook and then sends a an email to the second person in the routing list.  The problem is when it is sent to the second person how do I generate the attachment.  Can the SendObject command have a filter?  What would the syntax be in the example below where
CapEXID = 1.  Thanks for your help!

DoCmd.SendObject acSendReport, "rptCapExRequests", acFormatPDF, varEmail, , , varSubject, varText, True
0
Comment
Question by:Sasha42
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 37778146
<The problem is when it is sent to the second person how do I generate the attachment. >
See here to include the original attachment with the reply
http://replyallwithattach.codeplex.com/

<Can the SendObject command have a filter?>
No,
It would seem that you would need to "Loop" trough all of these CapEXID values, and lock onto the email for each...
...but we would need to know a lot more about your design and how you are performing the "routing"...
0
 

Author Comment

by:Sasha42
ID: 37787511
I created a work around using variables on the reports recordsource.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37787754
...Then post your workaround, and accept your own post...

Accepting my post when it is not a solution will cause confusion when other members search here for the same issue

;-)

Jeff
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now