?
Solved

Send attatcment without opening report

Posted on 2012-03-28
3
Medium Priority
?
353 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 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