Results 1 to 3 of 3
  1. #1
    matto is offline Novice
    Windows 7 Access 2003
    Join Date
    Jul 2010
    Posts
    9

    from MS Access to MS Word tables

    Hey!!

    I've got a string that I've populated with data (from MSAccess...) and I want to insert this data into a table (in MS Word).



    There are two columns (midwayish... columns 3 and 4) in the table that this data should go into. I've got the first cell where data should go bookmarked as "police".

    I've got a string called cops filled with the information as such (so far): "name" & vbTab & "number" & vbCr & "name2" & vbTab & "number2" & vbCr(etc)

    Now if there was a character that reprsented the arrow keys on the keyboard, I could simply replace vbTab with the Right arrow key, and vbCr with a Down and Left arrow key maneuver and that would be problem solved. But I don't know if this is possible.

    If that were the case, this would be all I'd have to do:
    Code:
    .ActiveDocument.Bookmarks("police").Select
    .Selection.Text = (cops)
    Any ideas on how to do this?

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    I would use the generic Wordmerge capabiility of Word. It is able to use an Access query as it's data source easily.

  3. #3
    matto is offline Novice
    Windows 7 Access 2003
    Join Date
    Jul 2010
    Posts
    9
    Nifty feature that I did not know about! Unfortunately, I don't think it'll work with what I'm doing. And I've already come this far, so I'm just going to improvise, merge some cells, and have it spit out a bunch of stuff in one cell of one column, and do the same for the next column, etc. It'll have to do.

    Thanks for the suggestion, though.

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

Similar Threads

  1. Access and Word Automation
    By djreyrey in forum Forms
    Replies: 1
    Last Post: 01-08-2010, 02:33 PM
  2. How to import word and PDF files into Access
    By asaini in forum Import/Export Data
    Replies: 1
    Last Post: 09-03-2009, 11:11 AM
  3. Amount in word in MS. Access 2000 (VBA)
    By dannygan in forum Access
    Replies: 5
    Last Post: 06-07-2009, 11:52 PM
  4. Mail Merge from Access to Word
    By Rachelkm2 in forum Programming
    Replies: 1
    Last Post: 05-29-2009, 02:49 PM
  5. access to word please help!
    By fiesta_rich in forum Import/Export Data
    Replies: 2
    Last Post: 04-14-2009, 09:27 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