[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Send attatcment without opening report

Posted on 2012-03-28
3
Medium Priority
?
366 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 1000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

872 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