Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8204213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:49:46+00:00 2026-06-07T07:49:46+00:00

I am trying to import data into access 2007 from a MS Word form

  • 0

I am trying to import data into access 2007 from a MS Word form field.
I have followed the tutorial here: http://msdn.microsoft.com/en-us/library/aa155434(v=office.10).aspx

When I run the VBA code I get a compile error that says “User-defined type not defined“. After doing some research I’ve found that it is likely because I am missing a reference to an object in an object library.
I have the following object libraries referenced:

  1. Visual Basic For Applications
  2. Microsoft Access 12.0 Object Library
  3. Ole Automation
  4. Microsoft Office 12.0 database engine Object library
  5. Microsoft Word 12.0 Object library

The error is thrown when the sub is called here:

Sub GetWordData()

Am I missing a reference, or do I have another problem?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:49:47+00:00Added an answer on June 7, 2026 at 7:49 am

    Ensure that you have set a reference to the Microsoft ActiveX Data Objects x.x Library.

    In the code window, choose Tools->References, scroll to the library and tick it.

    Note that using library references, rather than late binding (Create.Object("Word.Application")), makes it easier to access properties and methods but can mean that your code will not run in other environments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to import data from excel into a datatable using c#. Here
I am trying to import data from an Access database into R. I would
I am trying to import data from excel file (.xlsx) into sql database, my
I’m trying to import fixed width data from text file into SQL Server Express
I am trying to import data from Access to Excel based on two parameters.
I have the unfortunate task of having to import data from excel into a
I have a Microsoft Access database query that I'm trying to import into a
I am trying to import details from an access database into my sql application
I am trying to import data from a mySQL database into Microsoft SQL because
I am trying to import a csv file to insert data into an existing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.