ADODB connection creates error; using Microsoft.Jet.OLEDB.4.0 as data provider

From: rt (rt_at_nowhere.com)
Date: 08/10/04


Date: Tue, 10 Aug 2004 16:05:17 -0700

Hello,
I created an Access 2000-formatted MDB using Access 2003. It uses a split
front-end/back-end. I created a form which attempts to connect to the
back-end using an ADODB connection. My pc uses XP Pro and Office 2003 (I
also have Office 97 installed). Some client machines will only have Office
2000 installed, which is why I am using Access 2000 format for the MDB,
instead of Access 2003.

When testing on an Office 2000 machine, I get this error:
"Run-time error '3706':
Provider cannot be found. It may not be properly installed."

This error occurs on any machine with Office 2000 installed. They also have
Office 97 installed for some legacy Access 97 applications, and I cannot
install Office 2003 on them.

Here is the offending code:
***********START CODE************
Public Function fOpenVTSconnection()
'Creates a connection to the VTS back-end MDB.
Set cnnVTS = New ADODB.Connection
With cnnVTS
    .Provider = "Microsoft.Access.OLEDB.10.0"
'CODE BREAKS ON NEXT LINE.......
    .Properties("Data Provider").Value = "Microsoft.Jet.OLEDB.4.0"
    .Properties("Data Source").Value = "server name\path name here" ' (the
actual server name is substituted here...)
    .Open
End With
End Function
************END CODE************

Other ADODB.Connections I've set up using ".Properties("Data Provider") =
"SQLOLEDB"" to a SQL Server, or using a Microsoft dBase driver with an
ADODB.Connection, work without errors.

The project's references are:
"Visual Basic For Applications"
"Microsoft Access 11.0 Object Library"
"OLE Automation"
"Microsoft DAO 3.6 Object Library"
"Microsoft ActiveX Data Objects 2.1 Library"

My understanding is that .Properties("Data Provider").Value =
"Microsoft.Jet.OLEDB.4.0" should work since it was installed with MDAC 2.6
on all of the computers in our department. I tried re-installing MDAC 2.6,
but nothing changed.

How can I track down the source of this error, and correct it?

Thank you for any assistance with this issue.



Relevant Pages

  • Re: Cannot connect ADO to MS Access 2000
    ... -- and this is especially true of MDB file-based applications. ... Project /References and select "Microsoft ActiveX Data Objects 2.8 Library" ... Microsoft Jet and Replication Objects 2.6 Library ... way because Microsoft can on the fly adjust which exact file to install on ...
    (microsoft.public.data.ado)
  • Re: EXE file
    ... There never was a product that could convert an MDB into an EXE. ... You may be thinking of the Developer edition that allows you to package your ... purchase simply the Developer extensions if you already had Microsoft Office ... components and you have to have Access 2003 installed in order to install ...
    (microsoft.public.access.security)
  • Re: Possible virus!
    ... > didn't work then we might have to do a fresh install. ... Microsoft has these suggestions for Protecting your computer from the ... I'll mainly work around Windows XP, as that is what the bulk of this ...
    (microsoft.public.windowsxp.general)
  • Re: Does anybody know what virus ive got?
    ... > Internet Security after I install it. ... Microsoft has these suggestions for Protecting your computer from the ... keep it clean,secure and running at its top performance mark. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Does anybody know what virus ive got?
    ... > Internet Security after I install it. ... Microsoft has these suggestions for Protecting your computer from the ... I'll mainly work around Windows XP, as that is what the bulk of this ...
    (microsoft.public.windowsxp.customize)