locked
help me solve this issue RRS feed

  • Question

  • I m a beginner for VB..could u please help me out with the error in the below lines...

    Dim con As New ADODB.connection

    the error is

    "

    Error 2 Type 'ADODB.connection' is not defined. C:\Documents and Settings\Administrator\Desktop\dbms new\WindowsApplication1\WindowsApplication1\Form1.vb 5 20 WindowsApplication1"

    Monday, April 15, 2013 1:43 PM

Answers

  • You need to set a reference to "Microsfot ActiveX Data Objects" (ADO for short) first.

    Right Click on the project - and click on Add Reference..


    Ali Hamdar (alihamdar.com - www.ids.com.lb)

    • Marked as answer by Chester Hong Monday, May 6, 2013 11:44 PM
    Monday, April 15, 2013 2:01 PM