Results 1 to 2 of 2

Thread: ADO Connection Problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    21

    Question

    Hi. Using the following code, I am getting a "User-defined type not defined error message" when I try just to define my object model. I have my references for Microsoft ActiveX Data Objects 2.1 Library, Microsoft ADO Ext. 2.1 for DDL and Security, and Microsoft Jet and Replication Objects 2.1 Library. I must be missing something simple, because I can't even define it. What am I overlooking? Dim cnn as New ADODB.Connection cnn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=.\db1.mdb;" Thanks in advance!

  2. #2
    Fanatic Member Gary.Lowe's Avatar
    Join Date
    May 2000
    Location
    In my sphere of influence
    Posts
    621

    Thumbs up

    Adam

    I would double check that the references are definitely checked as sometimes VB does not always reference them first time.
    Gary Lowe
    VB6 (Enterprise) SP5
    ADO 2.6
    SQL Server 7 SP3

    OK I know my spelling and grammer is crap so don't quote me on it!

    To err is human to take the P! is only natural !!

    Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width