CDaoDatabase::DeleteQueryDef

Call this member function to delete the specified querydef — saved query — from the CDaoDatabase object's QueryDefs collection.

void DeleteQueryDef( 
   LPCTSTR lpszName  
);

Parameters

  • lpszName
    The name of the saved query to delete.

Remarks

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.

Requirements

Header: afxdao.h

See Also

Reference

CDaoDatabase Class

Hierarchy Chart

CDaoQueryDef::Create

CDaoDatabase::CreateRelation

CDaoTableDef::Create

Other Resources

CDaoDatabase Members