Call this member function to specify the name of an attached table or the name of the base table on which the CDaoTableDef object is based, as it exists in the original source of the data.

void SetSourceTableName( 
   LPCTSTR lpszSrcTableName  


A pointer to a string expression that specifies a table name in the external database. For a base table, the setting is an empty string ("").

You must then call RefreshLink. This property setting is empty for a base table and read/write for an attached table or an object not appended to a collection.

For related information, see the topic "SourceTableName Property" in DAO Help.

Header: afxdao.h

Community Additions