Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database connection error
#1
Not Solved
I get an error: Provider cannot be found. It may not be properly installed. Error Number : 3706. Please assist.
My code:
Code:
Public Function ConnectAccess (dbName)  
    On Error Resume Next

    Dim con

    Set con = CreateObject("ADODB.Connection")
    With con
        .ConnectionTimeout = 60
        .Open "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & dbName & ";Persist Security Info=False;"

        Set ConnectAccess = con
        Set con = Nothing
    End With
End Function
Reply
#2
Not Solved
Check ConnectionStrings to verify whether your are entering correct data for database connectivity.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
The connection settings should be fine because this used to work on my old machine. I only started getting this error when I tried working with the same programs on a new machine. Any suggestions?
Reply
#4
Not Solved
Looks like you are missing a component on this machine. Check this.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Connection String for Oracle robertosalemi 6 12,244 01-15-2016, 04:51 PM
Last Post: robertosalemi
  DB2 Connect connection with IE 11 SRP 1 2,598 12-18-2015, 12:41 PM
Last Post: vinod123
  IBM DB2 connection with VB script bmurali 2 10,846 12-18-2015, 12:38 PM
Last Post: vinod123
  Connection with HP ALM hachem 0 2,584 02-26-2015, 04:36 PM
Last Post: hachem
  “Cannot connect to 8822 (connection timed out)" Ikbal 0 2,113 12-08-2014, 11:38 PM
Last Post: Ikbal

Forum Jump:


Users browsing this thread: 1 Guest(s)