[dba-VB] Vb.net ADO Equivelent to recordset

John W. Colby jwcolby at colbyconsulting.com
Fri Jul 22 06:27:15 CDT 2005

I need to manipulate a recordset like I would in VBA

	with rst
		SomeVar = !SomeField
		SomeVar2 = !SomeField2
	end with

What is the equivalent in ADO / .net?  I do not need to bind this to a
control, and all of the examples I am finding for .NET assume I just want to
bind it to a grid or a list or something.

In fact I do want to bind it to a class if that is possible.  I am building
a class pair where one class represents an individual record, and the parent
class represents a table (an indexed collection of the record classes).  The
first class has properties (variables) for each field in the table, and the
init will load the values in.  The second class needs to open the
"recordset", and then start instantiating the first class, initializing with
data from a given record, storing in a collection and moving to the next

I have done all of this in ADO in VBA using the adodb.recordset object but
don't find the equivalent in .net.

John W. Colby

Contribute your unused CPU cycles to a good cause:

More information about the dba-VB mailing list