Thanks for that. However, I ended up doing it the other way around.
That is, using Word to export the file properties to Access. Sample
code below:
Sub GetDataToDataBase()
' The following is the code that you would use to transfer the file
properities from Word into an Access database:
'Define variables
Dim vConnection As New ADODB.Connection
Dim vRecordSet As New ADODB.Recordset
'provide connection string for data using Jet Provider for Access
database
vConnection.ConnectionString = "data source=mydatabase.mdb;
Provider=Microsoft.Jet.OLEDB.4.0;"
'Open a new version of the temporary RecordSet accessing the table in
Database
vRecordSet.Open "MyTable", vConnection, adOpenKeyset,
adLockOptimistic
'we can't enter "nothing", so only set variables with some data entered
info the Field
If ActiveDocument.BuiltInDocumentProperties("Title") <> "" Then
vRecordSet!Title =
ActiveDocument.BuiltInDocumentProperties("Title")
End If
' repeat for "Subject", "Keywords", "Comments", "Creation Date",
"Last Save Time", "Category",
' "Author""Manager", "Company" as desired
'update the RecordSet to the database, this adds the information to the
table in the database.
vRecordSet.Update
'close the recordset
vRecordSet.Close
'close objects
vConnection.Close
'clear object to free up memory
Set vRecordSet = Nothing
Set vConnection = Nothing
End Sub