Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

visual basic and ms access

Status
Not open for further replies.

papaboy2

MIS
Jan 28, 2003
52
0
0
PH
ei i have a vb program trying to connect to a password protected access db but i'm getting the error "could not find installable ISAM", any help pls! i'll appreciate, thx!

here's my code

strConnect = "Jet OLEDB:Database Password=password;DataSource=" & App.Path & "\database\DB_GL.mdb;"

Set AdoCn = New Connection
AdoCn.Provider = "microsoft.jet.oledb.4.0"

AdoCn.Open strConnect, "", ""
 

strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\database\DB_GL.mdb & "Jet OLEDB:Database Password=password"

Set AdoCn = New Connection
AdoCn.Open strConnect

Or:
With AdoCn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Properties("User ID") = "Admin"
.Properties("Jet OLEDB:Database Password") = "password"
.Open App.Path & "\database\DB_GL.mdb
End With

If this doesn't work then you may have a missing reverence in the registry, to the JET 4.0 OLEDB provider.
 
What version of VB are you using? IF it is 6.0 you need to update the service pack. I had this same error on a new XP machine. It worked on the old but not the new. Needed to update service pack.
 
Or install MDAC 2.5 to get the JET 4 provider added and/or registered.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top