Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2004, 04:03 PM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default DAO Support Info

Do I have to have this upgrade support to use DAO code?

Module UpgradeSupport
    Friend DAODBEngine_definst As New DAO.DBEngine()
End Module


Do I have to have this in my program to :

Dim Center_Database As DAO.Database
    Dim Main_TD As DAO.Recordset
    Dim MAIN_TD As DAO.Recordset
Floor = DAODBEngine_definst.OpenDatabase("\\tpserver1\inve ntory\13FloorEquipment.mdb")
 MAIN_TD = Floor.OpenRecordset(COmpare, DAO.RecordsetTypeEnum.dbOpenDynaset)
 
Old January 7th, 2004, 02:09 PM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I was just informed that ADO is not supported in Vb.net, thus that is why recordset can not be opened with out using the upgrade.

Does anyone know how to loop thru records in an Access Database ?


Thank you
 
Old January 7th, 2004, 04:17 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You need to look into the System.Data.Odbc namespace. You can use an OdbcConnection class to connect to an Access database. There are lots of threads in the wrox forums dealing with Access. Once you are connected, you can use an OdbcDataReader. This is really the simplest .net form of the former ADODB.Recordset. You can use a data reader to go thru the rows returned from your table/query. The datareader is a forward-only read-only collection of rows. You can use the a reader to loop or for databinding to a data listing control.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO or DAO knowledge76 Access VBA 3 October 12th, 2015 04:26 PM
Error-Object does not support doesn't support this bootsy Classic ASP Basics 1 May 25th, 2008 07:14 PM
DAO yanis97 Java Databases 0 September 6th, 2006 10:37 AM
using DAO vubinhsg BOOK: Access 2003 VBA Programmer's Reference 2 July 22nd, 2004 08:46 AM
Where would I get info on how to download info aidanc ASP.NET 1.x and 2.0 Application Design 1 September 29th, 2003 02:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.