Log in

View Full Version : Acessing a database in VB .Net 2003


jenkinsdjj
Jul 27, 2005, 10:43 PM
I have tried many times to open an database and an SQLServer2000 database from VB .Net 2003. The import statements and code syntax is correct and has been checked over and over. I have also tried various published examples and still I get the error message "No source code at this point". I there likely to be a bug fix I have not applied?

Typical code I have used is as follows:

Imports System.Data.OleDb

Public Sub CheckFiles()
Dim dbs As New OleDbConnection

dbs.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + _
"Data Source=C:\VB .Net Projects\Collectivist v4" + _
"\Collectivist v4\bin\Access Docs\Collectivist.mdb;"
dbs.Open()

'other code here

End Sub