Solved

Send attatcment without opening report

Posted on 2012-03-28
3
344 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 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

724 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