Share via


Field2.SourceTable Property

Access Developer Reference

Returns a value that indicates the name of the table that is the original source of the data for a Field2 object. Read-only String.

Syntax

expression.SourceTable

expression   A variable that represents a Field2 object.

Remarks

For a Field2 object, use of the SourceField and SourceTable properties depends on the object that contains the Fields collection that the Field2 object is appended to, as shown in the following table.

Object appended to Usage
Index Not supported
QueryDef Read-only
Recordset Read-only
Relation Not supported
TableDef Read-only

These properties indicate the original field and table names associated with a Field2 object. For example, you could use these properties to determine the original source of the data in a query field whose name is unrelated to the name of the field in the underlying table.

Bb257462.vs_note(en-us,office.12).gif  Note
The SourceTable property will not return a meaningful table name if used on a Field2 object in the Fields collection of a table-type Recordset object.