DatabaseTables Collection

Sample Code - DatabaseTables Collection

The DatabaseTables Collection is a collection of DatabaseTable objects. A DatabaseTable object exists for every database object (that is, table, query, stored procedure, etc.) accessed by the report. Access a specific DatabaseTable Object, in the collection by using the Item property.

DatabaseTables Collection Properties

Property Description Read/Write

Application

Returns a reference to the Application Object, that this object is associated with.

Read only

Count

Returns the number of database objects in the collection.

Read only

Item

Returns DatabaseTable Object. Item has an index parameter that can be either a string reference to the table, (that is, Item("Catgories")) or a numeric, 1-based index (that is, Item (1)). When a numeric index is used, the items in the collection are indexed in the order that they were added to the report.

Read only

Parent

Reference to the Parent object (Database Object).

Read only

Report

Reference to Report Object.

Read only

Remarks

Instead of using the Item property as shown, you can reference a table directly (for example, DatabaseTable("Categories") or DatabaseTable(1)).



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com