Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2015
    Posts
    3

    Exporting Report to Outlook - Embed in Body of Message

    Hey all,



    I'm new here. I'm pretty much an advanced-intermediate user (i.e. know enough to be dangerous).

    Here's what I'm working on. I need to generate a report and then email it to employees within the body of an email. If it's a PDF file, they won't look at it (trust me on that one). The report is designed to show them the status of a single "order" and what documents are still missing from it. Ideally it would look like this:


    Order Number: 1234567
    Customer Name: John Smith

    The following documents are still needed to allow us to continue to process this order:

    X Document A
    X Document D
    X Document G

    Thank you.

    I can create the report, however when I try to copy it over to Outlook, it ends up just being a datasheet view and has ALL of the fields, not just those that are checked off.

    Any suggestions?

    Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I would send just as you have:
    Order Number: 1234567
    Customer Name: John Smith

    The following documents are still needed to allow us to continue to process this order:

    but with your attached pdf. (a single OUTPUT command)
    Your co-workers cannot be so lazy that they cannot click 1 finger to view the document.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    The alternatives:

    1. if data from multiple records, then in looping structure concatenate desired data into a continuous string with embedded CrLf to be part of the email body - email can be sent with SendObject method

    2. somehow export report to jpg image and then embed that image into email with HTML code tags - cannot use SendObject method, requires Outlook automation

    3. maybe programmatically manipulate copy/paste - it is possible to manually select records/fields from table or query then copy and paste into email as an embedded table
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Join Date
    Aug 2015
    Posts
    3
    Quote Originally Posted by ranman256 View Post
    I would send just as you have:
    Order Number: 1234567
    Customer Name: John Smith

    The following documents are still needed to allow us to continue to process this order:

    but with your attached pdf. (a single OUTPUT command)
    Your co-workers cannot be so lazy that they cannot click 1 finger to view the document.
    Thank you everyone. I spoke to my boss about it and he's approved of using the PDF format. He said, "Yea, there's some that are so #*#) lazy that they'll never click on it, but it comes out of their paycheck, not ours." LOL

    Thanks again!

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Are you using SendObject method?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Putting a Form in Outlook Body
    By Minkyboodle in forum Import/Export Data
    Replies: 2
    Last Post: 04-13-2014, 08:19 PM
  2. Replies: 2
    Last Post: 01-23-2014, 12:40 PM
  3. Creating formatted body text in Ms Outlook
    By capitala in forum Forms
    Replies: 2
    Last Post: 04-24-2013, 10:20 PM
  4. sending data into an email body - outlook
    By webisti in forum Access
    Replies: 6
    Last Post: 02-15-2012, 07:05 AM
  5. FORMATTING Outlook Email in BODY of Access code
    By taimysho0 in forum Programming
    Replies: 7
    Last Post: 11-28-2011, 11:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums