CDaoQueryDef::Open

virtual void Open( LPCTSTR lpszName = NULL );
throw( CDaoException, CMemoryException );

Parameters

lpszName

A string that contains the name of the saved querydef to open. You can use a CString.

Remarks

Call this member function to open a querydef previously saved in the database’s QueryDefs collection. Once the querydef is open, you can call its Execute member function or use the querydef to create a CDaoRecordset object.

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

CDaoQueryDef OverviewClass MembersHierarchy Chart

See Also   CDaoQueryDef::IsOpen, CDaoQueryDef::Close, CDaoQueryDef::SetName, CDaoQueryDef::Create