Results 1 to 3 of 3
  1. #1
    Kevo is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Location
    Kodiak, Alaska
    Posts
    86

    Populate Word template with data from textbox

    Hi All,



    I am in the design stages of putting together a database and have a question...

    Can I create an inventory item with a field (text) that has a description - when user presses a button, that description (text) populates in a certain area on a Word document. If so, how hard is this to do?

    Thanks
    Kevin

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I expect the VBA would have to open the Word document as an object that can be manipulated. Somehow find the location for the input, maybe a bookmark in the Word document, and then insert the text, save with the edit, and close the VBA object. Most threads in forum on Word interaction concern Word merge, although I seem to remember a discussion similar to your requirement. Finding it again would be a challenge.

    Maybe this has clue http://stackoverflow.com/questions/8...rom-access-vba
    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
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    just to add FYI; from Microsoft they provide the core Word Merge feature in Word whereby you link to an Access table/query to provide the data. Think mass mailings - where you have some boilerplate info in your Word doc/template but want to have unique Address, greeting, and maybe other stuff in the mass mailing so it is personalized.

    Access provides the record set - let's say 50 records. Word provides the template. Then with Word Merge you press a button and get a 50 page Word doc that you can print.....

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

Similar Threads

  1. Populate Word Userform with data from Access
    By edi dhar in forum Programming
    Replies: 5
    Last Post: 08-04-2014, 11:02 AM
  2. Replies: 3
    Last Post: 03-07-2013, 12:43 PM
  3. Open Word Template from Form Control
    By tanyad in forum Import/Export Data
    Replies: 2
    Last Post: 04-05-2012, 10:13 PM
  4. Import Word Docs as Form Template
    By Spectre50 in forum Forms
    Replies: 0
    Last Post: 03-05-2012, 01:51 PM
  5. vba code to populat word template in Access 2010
    By graffjohn in forum Programming
    Replies: 2
    Last Post: 06-11-2011, 09:36 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