Re: Accessing mdb file via VB code
- From: "AK" <nospam@xxxxxxxxxxx>
- Date: Mon, 3 Jul 2006 17:37:37 -0500
Thanks guys, your info was good and I was able to get one of my forms up and
running, but then I encountered the error message "Unable to find
installable ISAM" when a connection to my database was attempted on another
form.( Man , talk about learing to ride your bike while trying to dodge
bricks!)
Googled this and went to MS KB where it talks about such a message but the
info they give (at KB # 283881) appears to deal with Access 2003 (which is
what I am using) but then goes on in the body to indicate that I am
supposed to look for a JET 3 file ! My provider is Jet 4.0 not Jet 3.
I am not afraid to edit the registry (Well I kinda sorta am but still can
do it if need be) but I am unclear if this KB article applies to me. All of
my connections are to the same DB and the conection string is the same:
Private m_adoConnection As ADODB.Connection
Dim strConn As String
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data " & _
"Source=" & m_sDataFile & ";" & _ 'm_sDatafile is my path
to my Database
"Jet OLEDB:Database Password = MyPassword; &
Mode=ReadWrite;"
m_adoConnection.Open strConn
What gives now??
Any
"Ralph" <nt_consulting64@xxxxxxxxx> wrote in message
news:P5ednVKYeI7F0DTZnZ2dnUVZ_u6dnZ2d@xxxxxxxxxxxxxxx
"Jeff Johnson" <i.get@xxxxxxxxxxx> wrote in message
news:%23vots6rnGHA.1664@xxxxxxxxxxxxxxxxxxxxxxx
"AK" <nospam@xxxxxxxxxxx> wrote in messageand
news:%23AWrUArnGHA.5056@xxxxxxxxxxxxxxxxxxxxxxx
I started by adding a password to my test DB by setting it by using
Tools|Security
Then I changed my Connection.Open Method statements to add the UserID
space)Passwords.
If all you did was add a "database password" then "User ID" (note the
and "Password" are not the keywords you want; you want "JetOLEDB:Database
Password".
Doh!
By using UserID and Password in the connection string one is telling Jet
that you intend to invoke User-Level security, not Database security, but
the 'current' mdw doesn't support that request.
-ralph
[sometimes one can have too much coffee! <g>]
.
- Follow-Ups:
- Re: Accessing mdb file via VB code
- From: Ralph
- Re: Accessing mdb file via VB code
- References:
- Accessing mdb file via VB code
- From: AK
- Re: Accessing mdb file via VB code
- From: Jeff Johnson
- Re: Accessing mdb file via VB code
- From: Ralph
- Accessing mdb file via VB code
- Prev by Date: Re: Which network?
- Next by Date: Re: Playing with the Dark Side
- Previous by thread: Re: Accessing mdb file via VB code
- Next by thread: Re: Accessing mdb file via VB code
- Index(es):
Relevant Pages
|