Tuesday, April 6, 2010

How to connect MS Access Database using Visual Basic.Net


Sample Source Code:
imports System.Data
Public Con As New Oledb.OledbConnection()
Con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & Application.StartupPath & "\database.mdb"
Note : Your database named database.mdb should be the location of your exe file i.e \bin\Database\Bin






0 comments:

Post a Comment

 
Powered by Blogger