Results 1 to 2 of 2
  1. #1
    plomikrz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2018
    Posts
    1

    Generate word document, generate email, search field

    Hi,
    I'm new to MS access and know nothing about VBA programming. I'm trying to create a database wich will enable me to do the following things in a form:
    - search for a record by any of the field value
    - button that generates a word document according to current record and sends it directly to a default printer. I'd like this button to add a date in one of the fields in current record
    - button that generates an email with specific function mailbox in "From" field. This generated email should use an email template and fill in 2 fields from the database

    Does anybody have any working solution for those functions? I tried to google it, but there is no solution when I get to the details as sending to a printer or including specific mailbox in From field.



    I would appreciate your help.

    BR,
    Krzysztof

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Word is not needed, Access has a built in report document designer, print with 1 command:
    docmd.openReport "rMyReport"

    Put the date in a form and sending email can be done with 1 command:
    Docmd.sendObject acSendForm, "fMyForm", acFormatPdf, sTo,,,sSubj, sBody

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

Similar Threads

  1. Auto email generate
    By nherbert31 in forum Queries
    Replies: 4
    Last Post: 08-01-2017, 12:38 PM
  2. Generate Email Template from Form
    By ryancgarrett in forum Access
    Replies: 3
    Last Post: 09-22-2015, 05:19 PM
  3. Replies: 5
    Last Post: 03-25-2015, 10:31 PM
  4. Replies: 4
    Last Post: 02-05-2014, 04:05 PM
  5. Replies: 1
    Last Post: 08-16-2012, 05:55 PM

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