
connecting to access2000 via ado?
Hi,
I want to open a access2000 database via ado. I managed to get it
running with access97, but not with 2000.
I tried to change the version from 3.51 to 3.6, but then i got a error
message: "runtime error: provider cannot be found. it may not be
properly installed"
but i have access2000 installed on my pc (and i am using vb 6.0 sp4).
And how can I manage that my program is working for access97 AND
access2000. Is there an easy way to find out, what type of version the
database is for and what version of access (jet enigine and ado) the
user has installed?
Greetings
Arno
Here comes the code, which is working for access97:
Dim sConnect As String
Dim dfwConn As New Connection
sConnect = _
"Provider=Microsoft.Jet.OLEDB.3.51;Persist Security
Info=False;User ID=Admin;Data Source=" + GetSetting("Mapper", "Startup",
"KCPM-DB", "C:\kcpm-test.mdb") + ";Mode=Share Deny None;Extended
Properties=';COUNTRY=0;CP=1252;LANGID=0x0409';Locale Identifier=1033;Jet
OLEDB:System database='';Jet OLEDB:Registry Path='';Jet OLEDB:Database
Password='';Jet OLEDB:Global Partial Bulk Ops=2"
'open connection
Set dfwConn = New Connection
dfwConn.Open sConnect
dfwConn.Close