BOOL IsOpen( ) const;
Return Value
Nonzero if the CDaoQueryDef object is currently open; otherwise 0.
Remarks
Call this member function to determine whether the CDaoQueryDef object is currently open. A querydef must be in an open state before you use it to call Execute or to create a CDaoRecordset object. To put a querydef into an open state call either Create (for a new querydef) or Open (for an existing querydef).
For information about querydefs, see the article DAO Querydef in Visual C++ Programmer's Guide.