Results 1 to 5 of 5

Thread: Heeeeeeellllllppppp!!!!!!!!!!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    SANTA ANA
    Posts
    14

    Angry Heeeeeeellllllppppp!!!!!!!!!!!!!

    What is wrong with this connection String?

    set adoConn = server.CreateObject("ADODB.Connection")
    set adoCmd = server.CreateObject("ADODB.Command")

    strConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;DefaultDir=C:\Program Files\Microsoft Office\Office\Samples;Driver={Microsoft Access Driver (*.mdb)};DriverId=281;FIL=MS Access"

    adoConn.Open strConnectionString

    I get the following Error:

    ADODB.Connection error '800a0e7a'

    ADO could not find the specified provider.

    Can Someone Please Help.
    Thanks In Advance!

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Why can't you just access it without a provider? Why would you need one?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    SANTA ANA
    Posts
    14
    When I make a Data Environment Connection it creates a connection string in globa.asa It puts the provider in there. Is there an easier way of doing this. How about some Code Sample

  4. #4
    kayoca
    Guest
    Try this provider Microsoft.Jet.OLEDB.4.0.

  5. #5
    Addicted Member jestes's Avatar
    Join Date
    Jan 2001
    Location
    Dallas
    Posts
    248
    Public objConn as ADODB.connection
    Public objCmd as ADODB.command

    Private Sub ADOConnection ()

    set objConn = New ADODB.Connection

    objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Visual Studio\VB98\people1.mdb;Persist Security Info=False"

    objConn.Open

    Use this if you're connecting to an Access 2000 db. change your provider to 3.51 if you're using 97.

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