Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Mar 2005
    Location
    Leicestershire, United Kingdom
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Best way to merge data into word

    Hi,

    What is the best way to merge data from access front end into a word document.

    At the moment, I have vba code that creates a text file from a query. Then the word document has the fields and where they need to go and the word document imports the text file as a Mailmerge.

    Is there a better way to do this?
    Best Regards,

    Luke

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,518
    Thanks
    0
    Thanked 22 Times in 22 Posts
    If you can define what fields are required in a query, then just use that query in word

  4. #3
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,481
    Thanks
    3
    Thanked 41 Times in 41 Posts
    There are some issues with doing mail merges from queries if the query includes a parameter prompt. If you take that approach, then you have to resort to using the older DDE technology. If you want to dig a bit deeper, the tutorial Managing Merges With Access might be helpful. It is a bit dated (2003), but the concepts are still appropriate.

    The other approach is to use Automation to fill in the Word document with the appropriate information using the "bookmarks" approach, which works very well if you only want to create one or only a few documents. But if you are creating a larger number, mail merge is still the best approach.
    Wendell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •