Results 1 to 3 of 3
  1. #1
    SemiAuto40 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41

    What the world happened!


    I took my 2003 MDB secured database and imported it into a new one on another PC running Access2010 thus creating a accdb file so that I could work on the manual permissions deal. Now I'm at work and the database will not allow me to add a record! The error that I get is:

    Compile error:
    User defined type not defined

    Dim MyConnection as ADODB.Connection is what is highlighted as the offending code.

    What the world!? Please?

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    ADO is not referenced in the new database.

    Open any module in design mode, then click Tools > References.

    Put a check mark next to "Microsoft ActiveX Data Objects 2.x Library".

    For more, please see http://allenbrowne.com/ser-38.html

  3. #3
    SemiAuto40 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41
    SUPER! PDEBAETS I'm sure glad there are individuals who are so willing to come to the rescue of beginners! Problem Solved!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-20-2011, 05:23 PM
  2. World's simplest question
    By corquando in forum Database Design
    Replies: 2
    Last Post: 02-09-2010, 05:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums