Call this member function to open a querydef previously saved in the database's QueryDefs collection.
virtual void Open( 
   LPCTSTR lpszName = NULL  
);
Parameters
- lpszName
 A string that contains the name of the saved querydef to open. You can use a CString.
Remarks
Once the querydef is open, you can call its Execute member function or use the querydef to create a CDaoRecordset object.
Requirements
Header: afxdao.h