Results 1 to 3 of 3
  1. #1
    dickn is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Victoria BC, Canada
    Posts
    15

    Question How can I print from a form without using a Report?

    I have a form with a button "Send Email" that gathers variables and then opens an OutLook mail item. I copy the body (body = mailitem.HTMLbody) and then use Replace to change embedded keywords (like MailMerge but not). Then I replace the mail body (mailitem.HTMLbody = body) and then mailitem.send with a To: filled in etc. Works like a charm. Now I want to print out a letter (for those without an email address) with the same information.
    1) Is there a way to print the formatted email item? Like .print or .printout (tried - didn't work)
    2) If I open a WORD doc the same way as the email can I manipulate the .body the same way?
    3) I've read about using MailMerge (and do use that manually) but the "replace" looks messy.


    Reason for doing this is so the email .msg and or the word .doc/.docx can be updated easily. If I go the Access Report way then it needs techies to make changes.

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529

  3. #3
    dickn is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Victoria BC, Canada
    Posts
    15
    Alan,

    You pointed me in the right direction but things have changed since you wrote this. Word 2013 is very different in how fields are setup and how they are replaced programatically. I spent over an hour of trial and error until I got it working. If you Google "How to define form text fields" you'll find some good sites that show how to do it in several versions of Word.

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

Similar Threads

  1. Replies: 14
    Last Post: 10-01-2015, 08:56 AM
  2. Replies: 5
    Last Post: 08-06-2015, 03:26 PM
  3. Replies: 1
    Last Post: 02-21-2015, 11:35 PM
  4. Replies: 6
    Last Post: 03-01-2014, 07:07 AM
  5. Replies: 3
    Last Post: 03-11-2013, 05:11 PM

Tags for this Thread

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