Hi
I've tried everything I can think of and nothing seems to work.
If I don't have a password on the database, everything works fine.
If I put a password on it,
I get -2147467259(80004005) could not find installable ISAM.
I'm running
Windows XP Pro Ver 5.1.2600(sp2) build 2600
Visual Basic 6.0 Pro (sp6)
Access 2000 ver 9.0.4402 sr-1
1. I downloaded and installed sp6 for Visual Studio
2. I found and registered msrd2x40.dll and msrd3x40.dll
Below is a simplified version of what fails for me.
Any help is greatly appreciated.
Thanks
Dennis
Dim WithEvents cn1 As Connection
Dim rs1 As ADODB.Recordset
Private Sub Command1_Click()
GProvider = "Microsoft.Jet.OLEDB.4.0"
GConnectionString = "C:\VBISAM\ABC.mdb Password=pleasehelp"
'GConnectionString = "C:\VBISAM\ABC.mdb"
Set cn1 = New Connection
cn1.Provider = GProvider
cn1.ConnectionString = GConnectionString
cn1.Open
cn1.CursorLocation = adUseClient
Set rs1 = New Recordset
rs1.Open "Select * from Owner order by [FULL NAME]", _
cn1, adOpenDynamic
cn1.Close
Set rs1 = Nothing
End Sub
Veign - 31 Oct 2005 02:58 GMT
You need a connection string like:
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\somepath\mydb.mdb;" & _
"Jet OLEDB:Database Password=MyDbPassword"
Additional Connection string information
ADO Connection Strings (Carl Prothman):
http://www.carlprothman.net/Default.aspx?tabid=81
Connection Strings:
http://www.connectionstrings.com

Signature
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--
> Hi
>
[quoted text clipped - 40 lines]
>
> End Sub
DBARNETT@CCC.HSHS.ORG - 31 Oct 2005 04:01 GMT
Thank you very much.
The new connection string syntax worked great... :)
google@kaeldowdy.com - 31 Oct 2005 03:00 GMT
Two quick ideas...
You might need a semi colon between the database path and the password
attribute.
Also, is the [Owner] table linked to a text file or something like
that? That's when I usually get that ISAM error, but it's probably
just the connection string. Check out
http://www.carlprothman.net/Default.aspx?tabid=87#OLEDBProviderForMicrosoftJet
for some good info on connection strings for Access/Jet.
Kael