Tables Collection Method: Item 

Purpose

Retrieves a table from the Tables collection.

Syntax

The Item method has the syntax:

Item (VARIANT vaWhichItem)

Description

The parameter vaWhichItem describes the element to be returned. The following variant data types for arWhichItem are legal:

Type

Description

VT_BSTR, VT_LPCSTR, VT_LPWSTR

VT_BSTR *, VT_LPCST *, VT_LPWSTR *

The first table with name vaWhatItem is returned. If the name is not found, vaWhichItem is converted to an integer value which is used as index in the collection.

Any type convertible to a VT_I4

The parameter vaWhichItem is converted to an integer value and used as index in the collection.