473,830 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ADODB Connection String with password

Access 2000 - A am trying to access another Access 2000 database from a

code module. I have seen examples of the ADODB connection string - to
connect to an access database however the database that I am connecting

to has a database password - I get an error message when attempting to
specify the 'connect' parameter.
The following is an example...
Dim cnn As ADODB.Connectio n
Dim rs As ADODB.Recordset
Dim strSQL As String
Set cnn = New ADODB.Connectio n
cnn.Provider = "Microsoft.Jet. OLEDB.4"
cnn.Open "C:\Schedul e Analysis.mdb", "Admin", "MadeUpPassword "
However the open statement throws up the following error...
Error Number - "3706"
Description - "Provider cannot be found. It may not be properly
installed."
Any thoughts on what is wrong here?
Many Thanks.

Nov 13 '05 #1
1 20446
All you need to know, you can get from here -
http://www.connectionstrings.com/

The specific example listed there for your case is...
"Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=\somepat h\mydb.mdb;Jet
OLEDB:Database Password=MyDbPa ssword;"

Note that a database password is something distinct and different from a user
name and password used with workgroup security. A database password is never
supplied using the password argument.
On 19 Aug 2005 23:30:12 -0700, "Nigel C" <ni************ @hotmail.com> wrote:
Access 2000 - A am trying to access another Access 2000 database from a

code module. I have seen examples of the ADODB connection string - to
connect to an access database however the database that I am connecting

to has a database password - I get an error message when attempting to
specify the 'connect' parameter.
The following is an example...
Dim cnn As ADODB.Connectio n
Dim rs As ADODB.Recordset
Dim strSQL As String
Set cnn = New ADODB.Connectio n
cnn.Provider = "Microsoft.Jet. OLEDB.4"
cnn.Open "C:\Schedul e Analysis.mdb", "Admin", "MadeUpPassword "
However the open statement throws up the following error...
Error Number - "3706"
Description - "Provider cannot be found. It may not be properly
installed."
Any thoughts on what is wrong here?
Many Thanks.


Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2448
by: Bina Desai | last post by:
I get the following error: Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' /myweb4/authorised_user_page.asp, line 70 and line 70 of my code is: <% rsCheckUser1.Open strSQL1, strcon1 %> Here is the full code:
0
2481
by: Channing Jones | last post by:
Hello everyone, I am trying to store data in a binary field of an SQL-Server table using ADODB. So far, I have managed to store a record but not any data in the binary field. I only get exceptions on various part. I have tried both AppendChunk and using a stream object. Unfortunately all the examples I can find in the Net and on the Microsoft site
1
3530
by: liorh | last post by:
my code is using ADODB connection to connect to SQL (Virtual) Server. the way it being done is (c++): ADODB::_ConnectionPtr m_dbConn; ADODB::_RecordsetPtr m_dbRst; m_dbConn.CreateInstance(__uuidof(ADODB::Connection)); m_dbRst.CreateInstance( __uuidof( ADODB::Recordset )); m_dbConn->ConnectionString=( L"DSN=mydsn" ); m_dbConn->Open("","sa","",-1);
3
15181
by: Tim Marshall | last post by:
I'm starting to work with connection strings and Oracle. The connection string syntax is pretty much the same as MS SQL (based on one of Lyle's posts in response to a question I had about a jmonth or more ago), but now I'm wondering how to get a procedure using a connection string to prompt the user for a password. For example, the standard connect string might be: Driver={Microsoft ODBC for Oracle};Server=Timmy;Uid=tmar;Pwd=rtma In...
0
1643
by: Daniel Crespo | last post by:
Hi to all, I'm using adodb for accessing mysql and postgres. My problem relies on the mysql access. Sometimes, when I try to execute a query (using ExecTrans method below), I get this error: 'NoneType' object has no attribute 'cursor'
1
4839
by: Marcin Wasilewski | last post by:
Hi, I know that there were a lot of common posts but I stel have a problem. I'm using this code: set x = new adobd.connection x.open "provider.sqloledb;" & _ "data source = server.name.com;" & _ "port = 1234;" & _
7
319
by: Peter Newman | last post by:
Im still trying to get my head around this, but its the only way i have seen to be able to create a 'recordset' and bind text boxex to it and navigate throw each record by the click of a button ... ok it may not be the prettist of code but i have that bit working . i have however stumbled across another problem ... I make a connection to a SQL2005 database when my app loads using the following CON_BOSSCONNECTION.ConnectionString =
2
1882
bmallett
by: bmallett | last post by:
I am getting the following error: Error Type: ADODB.Command (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. /dcme/newframe/verify.asp, line 48 Line 48 is:
1
3429
by: =?Utf-8?B?VmVua2F0ZXNhbiBT?= | last post by:
Hi, I have a requirement of consuming a connection object returned from a COM component deployed in COM+ application. I have given the need for this requirement end of my query. My component returns a Connection objec to ASP page and then I am trying to use the same Connection object to Command/Recordset object to execute a SP I am getting the error given below ************************************
0
9793
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10777
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10493
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10526
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9315
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3960
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.