CADORecordset.Attachmethod
Attaches a recordset to the class.
Syntax
FUNCTION Attach (BYVAL pRecordset AS AFX_ADORecordset PTR, BYVAL fAddRef AS BOOLEAN = FALSE) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
pRecordset | A reference to an Afx_ADORecordset object. | |
fAddRef | TRUE = 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