•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 397,974 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,944 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Code for connecting to Microsoft Access databse, opening and closing connection
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()
Comments (Newest First)
kavithabhaskar | Junior Poster | Jul 18th, 2008
•
•
•
•
did you add a header to it ? add 'imports system.data.oledb' as the header and try
dengbadeng | Newbie Poster | Feb 24th, 2008
•
•
•
•
hello sir. i tried that code but it doesn't work. it says that it's not defined. what should i do?
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)