• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 35
  • Last Modified:

Email current record on a access form

Hello Experts,

I have attached a sample access file for better clarity to my question. I want to be able to email as  PDF attachment the current record on a form. At the moment when I click on email button every record gets sent on the attachment. I appreciate in advance the support here

Thanks
Braulio
0
BraulioCordova
Asked:
BraulioCordova
  • 2
1 Solution
 
Dale FyeCommented:
FIRST, you need to create a report based upon this form.

Then you need to modify the RecordSource for the report, something like:

SELECT * FROM qry_YourReport
WHERE ID = Forms!yourFormName.PKID

Then you can use the SendObject method to send the email with that report, using the PDF output format.

The key is using the WHERE clause in the Report Record Source.
0
 
BraulioCordovaAuthor Commented:
Thanks Dale!

I will implement your suggestion and will advise the results

Thanks again!Braulio
0
 
BraulioCordovaAuthor Commented:
Worked like a charm Dale!

Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now