Objective: to automatically fill an MS Access table with data
extracted from several word documents with form defined fields
Description: I have developed a word document with about 250 form
fields. I now have some 500 files filled in and I need to compile all
the data into an MS Access table.
What I have done:
With my knowledge, I have to
1. open each word document
2. select from the tools/save menu the ?Save data only for forms?
3. select from the File menu ?Save copy as? and save a plain text document
4. go to MS Access and choose File / Get External data / Import,
select the text document, change the text qualifier to none (I don?t
know why but if I don?t each letter from words ends up in a different
column)
5. import the data into an existing table
Also, because when some fields were filled out people used the ?Enter?
key (ex: when filling in an address with two lines, but using only one
field), I need to go through the text file I create on step 3 and
delete the line breaks, replacing them by a simple space, so that all
the info from a given field remains together.
What I need:
Bare in mind that I have some 500 word documents to process, so, what
I want is to automate this process.
Best case scenario, I would get a small app on which I would select a
folder where all the word documents lie (or directly select a group of
word files) and it would extract the info from all the fields and
group it into a simple table, one row per file, one column per field.
Finally, if I could get the MS Word file name to also get imported
into the database to help me identify the record, it would be great. |