title: Import MS Word Form Field to Access - Missing Reference?
body: <p>I am trying to import data into access 2007 from a MS Word form field.<br>
  I have followed the tutorial here: <a href="http://msdn.microsoft.com/en-us/library/aa155434(v=office.10).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa155434(v=office.10).aspx</a>   </p>
  
  <p>When I run the VBA code I get a compile error that says "<strong>User-defined type not defined</strong>".  After doing some research I've found that it is likely because I am missing a reference to an object in an object library.<br>
  I have the following object libraries referenced:</p>
  
  <ol>
  <li>Visual Basic For Applications</li>
  <li>Microsoft Access 12.0 Object Library</li>
  <li>Ole Automation</li>
  <li>Microsoft Office 12.0 database engine Object library</li>
  <li>Microsoft Word 12.0 Object library</li>
  </ol>
  
  <p>The error is thrown when the sub is called here:</p>
  
  <pre><code>Sub GetWordData()
  </code></pre>
  
  <p>Am I missing a reference, or do I have another problem?</p>
  
  <p>Thanks in advance</p>