Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am face some problem to connect access database from my vb.net application. I am working in 64 bit machine with Windows 7 operating systems. I need a sample code to access the database.
Posted

Hi,

Have a look here:
http://support.microsoft.com/kb/821765[^]
 
Share this answer
 
Here is the code snippet:

Dim cn As New OleDbConnection
 cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|Data.mdb;Persist Security Info=True"
 cn.Open()
 cn.Close()


Also, you can study this tutorial:
http://www.geekpedia.com/tutorial158_Connect-to-Access-Database-in-Visual-Studio-.NET.html

and for more help refer Google[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900