CDaoQueryDef::Append

virtual void Append( );
throw( CDaoException, CMemoryException );

Remarks

Call this member function after you call Create to create a new querydef object. Append saves the querydef in the database by appending the object to the database’s QueryDefs collection. You can use the querydef as a temporary object without appending it, but if you want it to persist, you must call Append.

If you attempt to append a temporary querydef object, MFC throws an exception of type CDaoException.

For information about querydefs, see the article in Visual C++ Programmer's Guide.

CDaoQueryDef OverviewClass MembersHierarchy Chart