Help Center

CADORecordset.Attachmethod

Attaches a recordset to the class.

DatabasesmethodCADORecordset.incdocumented

Syntax

FUNCTION Attach (BYVAL pRecordset AS AFX_ADORecordset PTR, BYVAL fAddRef AS BOOLEAN = FALSE) AS HRESULT

Parameters

NameDescription
pRecordsetA reference to an Afx_ADORecordset object.
fAddRefTRUE = increase the reference count; FALSE = don't increase the reference count.

Return value

S_OK or an HRESULT code.

Description

Attaches a recordset to the class.

Reference

  • Include file CADORecordset.inc
  • Defined in AfxNova/CAdoRecordset.inc:343
  • Documented in Databases/ADO Classes/CAdoRecordset Class.md
  • Topic: CADORecordset Class