Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42292

VS 2010 Opening database

$
0
0
Hello

In my vb.net 2003 this code works perfect but now that I updated my project to vb.net 2010 this will not work
any help is welcome because I am lost!!

There are no errors or warnings but as soon as the code is at the CN.Open line there is a error catch that report the files is not there, in the old version the same database at this location works fine???

Public CN As New ADODB.Connection ' Database type ADODB vast leggen
Public Sub CONNECT_DATABASE()
'Verbinding maken met de database
If CN.State = 0 Then ' State 0 database is gesloten dus openen toestaan
CN = New ADODB.Connection
CN.Provider = "MICROSOFT.JET.OLEDB.4.0" 'ACCES CONNECTION
CN.Open("C:\PROGRAM FILES (x86)\EASYAUTO\DATABASE.MDB")
End If
End Sub

Viewing all articles
Browse latest Browse all 42292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>