Duckjibe Posted November 19, 2002 Posted November 19, 2002 Hey started with vb.net this morning Looks like advancet one:-)... First problem is how to connect to a simple accesdatabase?? Or is it that they dont support access bases any longer...?? Thanks Quote
*Gurus* Thinker Posted November 19, 2002 *Gurus* Posted November 19, 2002 Last thing I read was there wasn't (yet) an ADO.Net provider for Jet. You have to use ADO. Quote Posting Guidelines
Leaders quwiltw Posted November 19, 2002 Leaders Posted November 19, 2002 (edited) Yep it's supported through OleDB. This should get you started. There are also plenty of tutorials on the net for this too. The only difficult hurlde to get over is no more recordsets. So you might want to read up on ADO.NET and datasets/datareaders/etc. Dim cn As New OleDb.OleDbConnection() cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= c:\some\path\to\data.mdb" cn.Open() Dim sql As String sql = "select * from df_topics" Dim dr As OleDb.OleDbDataReader Dim cmd As New OleDb.OleDbCommand(sql, cn) dr = cmd.ExecuteReader() [edit]Added vb tags...[/edit] Edited November 19, 2002 by divil Quote --tim
wyrd Posted November 19, 2002 Posted November 19, 2002 ! I haven't played with ADO.NET yet, but shouldn't there be cn.Close() at the end of that code? :eek: Quote Gamer extraordinaire. Programmer wannabe.
Leaders quwiltw Posted November 19, 2002 Leaders Posted November 19, 2002 Geez... it was just a snippet of code, relax dude. Quote --tim
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.