CDaoDatabase::DeleteQueryDef

void DeleteQueryDef( LPCTSTR lpszName );
throw( CDaoException, CMemoryException );

Parameters

lpszName

The name of the saved query to delete.

Remarks

Call this member function to delete the specified querydef — saved query — from the CDaoDatabase object’s QueryDefs collection. Afterwards, that query is no longer defined in the database.

For information about creating querydef objects, see class CDaoQueryDef. A querydef object becomes associated with a particular CDaoDatabase object when you construct the CDaoQueryDef object, passing it a pointer to the database object.

For information about querydefs, see the article DAO QueryDef in Visual C++ Programmer's Guide.For related information, see the topic "Delete Method" in DAO Help.

CDaoDatabase OverviewClass MembersHierarchy Chart

See Also   CDaoQueryDef::Create, CDaoDatabase::CreateRelation, CDaoTableDef::Create