Access to word tables have a lot of formatting issues.
The way I got around it was to have the data from access available in excel. Then you can copy and paste into an existing word table from excel.
The code I have in excel is this:
Code:
Sub BetterExcelDataToWord()
Dim objWord As Object, objDoc As Object
Dim strFolder As String, strName As String
Dim ws As Worksheet
Dim lngLastRow As Long
On Error GoTo Errorcatch
ActiveWorkbook.RefreshAll
Dim Ticker As Range
strName = Sheet1.Range("i1").Value
strFolder = "\\server\general\RAMS\RAM_RAMS\" & strName
Sheets("PasteSpecial").Activate
Sheets("PasteSpecial").Range("A4:H65").Delete
Application.Wait (Now + TimeValue("00:00:05"))
Sheets("RISKS").Activate
Set Ticker = Range(Cells(4, 1), Cells(65, 8))
Ticker.Copy
Sheets("PasteSpecial").Activate
Cells(4, 1).PasteSpecial xlPasteValues
Debug.Print strFolder
Set ws = ThisWorkbook.Sheets("PasteSpecial")
lngLastRow = [LOOKUP(2,1/(A1:A65000<>""),ROW(A1:A65000))]
Set objWord = CreateObject("Word.Application")
ws.Range("A4" & ":H" & lngLastRow).Copy
With objWord
.Visible = True
Set objDoc = .Documents.Open(strFolder)
With objDoc.Bookmarks("RISKS").Range
.Characters.Last.Next.PasteAppendTable
End With
.Activate
End With
Set ws = ThisWorkbook.Sheets("methodology")
With objWord.ActiveDocument
.Bookmarks("methodology").Range.Text = ws.Range("d1").Value
End With
Set objWord = Nothing: Set objDoc = Nothing
Application.CutCopyMode = False
Set ws = Nothing
Exit Sub
Errorcatch:
Debug.Assert False
MsgBox "Oops, an error has occured." & vbCrLf & vbCrLf & "Error Code : " & Err.Number & " , " & Err.Description
End Sub
If this is a path you wish to take I can help you out with some specifics.
Andy