Column Method

Object List Next Object

Defined By:
Recordset

Description:

Returns an object that represents the column (field) designated by a position value. The column (field) can consist of an arbitary number of rows.

Declaration:

Function Column(ByVal position As Long) As Dynaset

Details:

Column values are zero-based, meaning that their first column or field in the underlying database is Column(0). The following code example returns information in the first column of the current record in the first example and in the second column of all rows in the second example.

Dim s As String
s = <Dynaset>.CurrentRecord.Columns(0).Value

s = <Dynaset>.Columns(1).Value