Create table in Word Document From Access using VBA
问题 I am trying to create tables in a Word document template from my Access database. This bit of code runs fine from Word itself and creates tables as required. I was wondering if its possible to run this code from Access and point to a specific word document in which to create the tables. Dim numberOfTables As Integer Dim iCount As Integer numberOfTables = InputBox("How many tables to make?", "Tables") For iCount = 0 To numberOfTables - 1 ActiveDocument.Tables.Add Range:=Selection.Range,