rdoColumn Object

               

An rdoColumn object represents a column of data with a common data type and a common set of properties.

 
 
 

Remarks

The rdoTable, or rdoResultset object's rdoColumns collection represents the rdoColumn object in a row of data. You can use the rdoColumn object in an rdoResultset to read and set values for the data columns in the current row of the object. However, in most cases, references to the rdoColumn object is only implied because the rdoColumns collection is the rdoResultset object's default collection.

An rdoColumn object's name is determined by the name used to define the column in the data source table or by the name assigned to it in an SQL query. For example, if an SQL query aliases the column, this name is assigned to the Name property; otherwise, the column's name is used.

You manipulate database columns using an rdoColumn object and its methods and properties. For example, you can:

When you need to reference data from an rdoResultset column, you can refer to the Value property of an rdoColumn object by:

The rdoTable object's rdoColumns collection contains specifications for the data columns. You can use the rdoColumn object of an rdoTable object to map a base table's column structure. However, you cannot directly alter the structure of a database table using RDO properties and methods. You can, however, use data definition language (DDL) action queries to modify database schema.

When the rdoColumn object is accessed as part of an rdoResultset object, data from the current row is visible in the rdoColumn object's Value property. To manipulate data in the rdoResultset, you don't usually reference the rdoColumns collection directly. Instead, use syntax that references the rdoColumns collection as the default collection of the rdoResultset.

dim rs As rdoResultset
Set rs = cn.OpenResultset("Select * from Authors" _
   & "Where Au_Lname = 'White'",rdOpenForwardOnly)
debug.print rs!Au_Fname   
   'Refers to rdoRecordset object's rdoColumns collection.