Hi erezba!
Here is the code for etablish a connection to oledb:
DBFilePath stands for the location of the database file
(for example: C:\data\customers.mdb):
__________________________
Set adoconn = New ADODB.Connection
With adoconn
.Provider = "Microsoft.Jet.OLEDB.4"
.ConnectionString = "Data Source=" & DBFilePath
.CursorLocation = adUseClient
.Mode = adModeShareDenyNone
.Open
End With
Main Topics
Browse All Topics





by: TimCotteePosted on 2001-06-27 at 02:02:34ID: 6230499
erezba, here is a sample connectionstring for an access database:
EDB.4.0;Da ta Source=D:\Program Files\Microsoft Visual Studio\VB98\Nwind.mdb;Pers ist Security Info=False"
"Provider=Microsoft.Jet.OL
You can omit the provider part as you have already specified it in the provider property or you can do it all in the one assignment.