Yep, there are two ways to do this.
1. You can parse each line of the word doc, and look for a phrase from each question, then split out the answer using an array. This involves a lot of trial and error.
2. You can turn the table into a Form, and then retrieve the form fields from Access. This is more direct and there is no trial and error.
If you use this method, you need to apply data validation to your form so that the data being entered can be readily retrieved into Access.
The question is, which one do you want to do? Are you planning this system and can therefore do your own design? If so, use the form. Have you inherited a lot of data and need an ETL solution? If so, parse the text (you may want to turn all the doc files into text files to make this easier. You can write a quick file converter in VBA to do this for you when you open your database.)
HTH
mmcdonal
|