Results 1 to 7 of 7
  1. #1
    DCV0204 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    85

    Mail Merge

    I am wanting to click on a button to run "Query1" and then "Query2" mail merge my table named "Generate_Letter" to a word document I have linked to the table and final print the letters.



    Is any or all of this possible?
    Thanks,

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Absolutely! The Super Easy Word Merge of Albert's can be modified to do this: http://www.kallal.ca/msaccess/msaccess.html

  3. #3
    DCV0204 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    85
    Did not work.
    My Table name is "Generate_Letters"
    I named the button "GLtr"

    Here is the code I have:
    Private Sub GLtr_Click()

    Me.Refresh
    MergeAllWord ("select * from Generate_Letters")

    'Note that you can use a condtion in the above sql

    End Sub

    Please help.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Does Albert's example work?

  5. #5
    DCV0204 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    85
    As I stated above, it did not work.

    I did try the code again this morning and it still did not work.

    The previous post has the code I used; can you help?
    Thanks.

  6. #6
    DCV0204 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    85
    Thanks for your help.

    I have been doing some research and the following code works:

    Private Sub GLtr_Click()
    Me.Refresh
    Application.FollowHyperlink "P:\ALL MCC Info\Projects\NF_Extract10-19-2011\PRV-9004-R.docx"

    'Note that you can use a condtion in the above sql
    End Sub

    Thanks.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sounds like you nhave it sorted. Great!

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

Similar Threads

  1. Mail Merge
    By sakhtar in forum Access
    Replies: 8
    Last Post: 09-20-2020, 09:10 AM
  2. Mail merge problem
    By Affendi in forum Import/Export Data
    Replies: 6
    Last Post: 02-08-2011, 07:38 AM
  3. Automated Mail Merge
    By celinae in forum Programming
    Replies: 1
    Last Post: 09-20-2010, 09:57 AM
  4. Mail Merge
    By Nixx1401 in forum Access
    Replies: 1
    Last Post: 02-15-2010, 10:51 AM
  5. Mail merge
    By grgerhard in forum Forms
    Replies: 0
    Last Post: 04-25-2006, 05:06 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