共用方式為


CDaoQueryDef::Close

Call this member function when you finish using the querydef object.

virtual void Close( );

Remarks

Closing the querydef releases the underlying DAO object but does not destroy the saved DAO querydef object or the C++ CDaoQueryDef object. This is not the same as CDaoDatabase::DeleteQueryDef, which deletes the querydef from the database's QueryDefs collection in DAO (if not a temporary querydef).

Requirements

Header: afxdao.h

See Also

Reference

CDaoQueryDef Class

Hierarchy Chart

CDaoQueryDef::Open

CDaoQueryDef::Create

CDaoQueryDef::CDaoQueryDef