Results 1 to 4 of 4
  1. #1
    dniezby is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Apr 2013
    Posts
    183

    Storing mail merge and send as needed

    Need advice on best way to do this.

    I will be writing several documents that will be mail merge docs. When I add a new contact to my DB I want to be able to open a contact activity form, select one of the docs via drop down and send that doc merged for that contact via email.

    So what would be the best way to do this? Create the docs and store them in a folder and just reference them in the table or store the whole doc in the actual table?



    I want to be able track that I sent that document to someone as well. This way I'm not sending a contact repeats.

    Any thoughts would be greatly appreciated. Thanks in advance.

  2. #2
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    I take it that there is more than one document type so you can't use one template. Either way, I'd keep the documents in their own folder rather than embed them in a table. One way to access them is via the Application.FollowHyperlink method but a method using the Open statement is less buggy IMHO. As for recording, all you really need is a table with fields for the recipient and a yes/no field to flag as sent, plus whatever else makes sense for that process (such as document name, date sent, etc.).
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    dniezby is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Apr 2013
    Posts
    183
    No, I am only going to be using one document type. They will be Word Docs merged to the database.

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    by document type, I didn't mean .doc versus .xls versus .pdf, etc. I meant the structure of one Word document would be different than another, hence you couldn't use a template as the base file. Now I think you mean there's one doc and you're going to merge it with records from a table or query and send that as an email attachment, probably saving a copy of the merged document somewhere. If that's the gist of the question, then I think most here would agree that storing the path to the document is the way to go. Storing files in an Access database causes rapid bloating of the db file size and can be temperamental. I'd use folder storage and decide on one of the aforementioned methods of retrieving the document. My preference would be the Open method if for no other reason than I'm fairly certain you can control the mode of access; e.g. open read only. Plus FollowHyperlink wasn't originally created for opening files IIRC.
    Last edited by Micron; 03-09-2017 at 04:05 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Help needed in Mail Merge
    By ssurajkr in forum Access
    Replies: 3
    Last Post: 08-27-2015, 12:57 PM
  2. Help Needed for Mail Merge From Several Access Tables
    By MitchellGrainger in forum Import/Export Data
    Replies: 8
    Last Post: 10-27-2013, 07:37 PM
  3. Button on form needed to run mail merge from query
    By nic79uk in forum Programming
    Replies: 1
    Last Post: 02-17-2012, 07:34 AM
  4. Help needed with mail merge to Word
    By mhart in forum Import/Export Data
    Replies: 1
    Last Post: 08-12-2011, 12:22 PM
  5. Replies: 4
    Last Post: 04-13-2011, 10:11 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