CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Location
    Ludhiana (India)
    Posts
    18

    Question Problem with OLEDB Provider

    Hello!

    In my database programme, I'm using MSAccess Database. I have created connection with the database as follows:


    Global cn As New ADODB.Connection

    Set cn = New ADODB.Connection

    With cn
    .ConnectionString "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\DB.mdb"

    .CursorLocation = adUseNone
    .Open
    End With

    When the project is complete, it runs properly on WinME, WinXP, Win2000, but when I run it on Win98, I get runtime error "ADO can not find specified provider". Will you please help me in locating the problem & its solution.

    I have set the project reference to
    Microsoft ADO 2.0 library

    Thanks in advance

  2. #2
    Join Date
    Jun 2001
    Location
    Mi
    Posts
    1,249
    You have to have the proper MDAC installed ...

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

Featured