Dear all,
Does any one have any idea why an sql statment with INNER
JOIN syntax is working well with odbcprovider but not with
Oledbprovider when accessing an access 2000 database?
here is the code I have used with oledbprovider which fails
Dim monodbc As New
OleDb.OleDbConn ection 'Odbc.OdbcConne ction
monodbc.Connect ionString = ("Jet OLEDB:Global
Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet
OLEDB:Database Locking Mode=1;Data Source='D:\Nomo s Net
Suite\Runtime\C onfig\NetDBConf .mdb';Jet OLEDB:Engine
Type=5;Provider ='Microsoft.Jet .OLEDB.4.0';Jet OLEDB:System
database=;Jet OLEDB:SFP=False ;persist security
info=False;Exte nded Properties=;Mod e=Share Deny None;Jet
OLEDB:Encrypt Database=False; Jet OLEDB:Create System
Database=False; Jet OLEDB:Don't Copy Locale on
Compact=False;J et OLEDB:Compact Without Replica
Repair=False;Us er ID=Admin;Jet OLEDB:Global Bulk
Transactions=1" )
'"MaxBufferSize =2048;FIL=MS
Access;DSN=TRYM E;PageTimeout=5 ;UID=admin;DBQ= D:\Nomos Net
Suite\Runtime\C onfig\NetDBConf .mdb;DriverId=2 5"
monodbc.Open()
Dim momo As OleDb.OleDbData Adapter
momo = New OleDb.OleDbData Adapter
Dim sds As OleDb.OleDbComm and
sds = New OleDb.OleDbComm and(Query, monodbc)
momo.SelectComm and = sds
Return momo.SelectComm and.ExecuteRead er()
if I use exactly the same thing but with odbcprovider no
problem works ok.
regards
serge