void SetName( LPCTSTR lpszName );
throw( CDaoException, CMemoryException );
Parameters
lpszName
A string that contains the new name for a nontemporary query in the associated CDaoDatabase object.
Remarks
Call this member function if you want to change the name of a querydef that is not temporary. Querydef names are unique, user-defined names. You can call SetName before the querydef object is appended to the QueryDefs collection.
For information about querydefs, see the article DAO Querydef in Visual C++ Programmer's Guide. For more information about the querydef name, see the topic "Name Property" in DAO Help.
CDaoQueryDef Overview | Class Members | Hierarchy Chart
See Also CDaoQueryDef::GetName, CDaoQueryDef::SetSQL, CDaoQueryDef::SetConnect, CDaoQueryDef::SetODBCTimeout, CDaoQueryDef::SetReturnsRecords