CDaoQueryDef::SetReturnsRecords

void SetReturnsRecords( BOOL bReturnsRecords );
throw( CDaoException, CMemoryException );

Parameters

bReturnsRecords

Pass TRUE if the query on an external database returns records; otherwise, FALSE.

Remarks

Call this member function as part of the process of setting up an SQL pass-through query to an external database. In such a case, you must create the querydef and set its properties using other CDaoQueryDef member functions. For a description of external databases, see SetConnect.

For information about querydefs, see the article DAO Querydef. For information about external data sources, see the article DAO External: Working with External Data Sources. Both articles are in Visual C++ Programmer's Guide. For related information, see the topic "ReturnsRecords Property" in DAO Help.

CDaoQueryDef OverviewClass MembersHierarchy Chart

See Also   CDaoQueryDef::GetReturnsRecords, CDaoQueryDef::SetName, CDaoQueryDef::SetSQL, CDaoQueryDef::SetConnect, CDaoQueryDef::SetODBCTimeout