CDaoRecordset::SetFieldValueNull

void SetFieldValueNull( short nIndex );
throw( CDaoException, CMemoryException );

void SetFieldValueNull( LPCTSTR lpszName );
throw( CDaoException, CMemoryException );

Parameters

nIndex

 The index of the field in the recordset, for lookup by zero-based index.

lpszName

The name of the field in the recordset, for lookup by name.

Remarks

Call this member function to set the field to a Null value. C++ NULL is not the same as Null, which, in database terminology, means “having no value.”

For more information about record field exchange, see the articles DAO Record Field Exchange (DFX) and DAO Recordset: Binding Records Dynamically in Visual C++ Programmer's Guide. For related information, see the topics "Field Object" and "Value Property" in DAO Help.

CDaoRecordset OverviewClass MembersHierarchy Chart

See Also   CDaoRecordset::SetFieldValue