Michael Vasilevsky
asked on
Access Import Data from Word 2007 Combo Box
I'm using code like the below to import data from a Word 2007 document to my Access database. Is there similar code to extract data from Combobox controls on the Word document that are NOT form fields?
rst.Open "tbl_TEMPData", CurrentProject.Connection, adOpenStatic, adLockPessimistic
rst.AddNew
x = 1
Do Until x = rst.Fields.Count
rst.Fields(x).Value = wrdApp.ActiveDocument.FormFields(rst.Fields(x).Name).result
x = x + 1
Loop
rst.Update
rst.Save
rst.Close
ASKER
Huh?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If ActiveDocument.ContentCont
ActiveDocument.ContentCont
End If
MsgBox "Found ComboBox"
Next x
Open in new window