Results 1 to 5 of 5
  1. #1
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Word Merge Question

    I am trying to word mail merge my query so I can automatically email my customers. I first tried creating a report but quickly learned reports don't communicate with the fields in word's mail merge. So, I created a Query which presents the data in word to be emailed...

    The problem is that I have multiple lines for each customer in my query. The number of lines vary per customer. For each line, I have the email address associated with that customer. When I do the mail merge, it is creating a separate email each time the email address appears. So, instead of having 1 email with 10 lines of data, I have 10 emails with 1 line of data for the same customer. I tried to merge two separate tables (one with the multiple lines of data and one that just has the email address) but I couldn't get the mail merge to accept more than 1 query/table.



    Is there another way to go about this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why not email Access report?
    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.

  3. #3
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73
    There are 2 reasons: 1) I would like to have the wording in the body of my email instead of an attachment 2) No one was able to tell me how to email the report to multiple customers via Access

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Access can do 1 and 2. Perhaps you can supply a sample version of your database with enough data to show a few variations in your email verbiage that'd be more constructive in helping you. Whether you want to have a single email going to several customers with the same attachment, or a separate email to each customer each having the same report, or a separate email to each customer with a different report, all of these are possible.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    There are numerous discussions showing both.

    1. build email body from recordset of data - an alternative is to export report to HTML file and pull HTML file into email HTMLBody

    2. loop through recordset to build multi-address string

    The following seems to show it all:

    https://www.accessforums.net/showthread.php?t=76869
    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. Replies: 3
    Last Post: 06-27-2017, 12:06 PM
  2. Replies: 1
    Last Post: 12-03-2014, 06:41 PM
  3. Replies: 6
    Last Post: 08-13-2014, 10:32 PM
  4. Word Merge
    By cbende2 in forum Access
    Replies: 1
    Last Post: 07-01-2014, 10:59 AM
  5. Word Doc Merge
    By ajolson1964 in forum Access
    Replies: 5
    Last Post: 05-10-2011, 11:50 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