Export (0) Print
Expand All
Expand Minimize


Call this member function to determine whether the specified field data member is "nullable" (can be set to a Null value; C++ NULL is not the same as Null, which, in database terminology, means "having no value").

BOOL IsFieldNullable(
   void* pv 


A pointer to the field data member whose status you want to check, or NULL to determine if any of the fields are Null.

Return Value

Nonzero if the specified field data member can be made Null; otherwise 0.


A field that cannot be Null must have a value. If you attempt to set such a field to Null when adding or updating a record, the data source rejects the addition or update, and Update will throw an exception. The exception occurs when you call Update, not when you call SetFieldNull.

See Also

CDaoRecordset Overview | Class Members | Hierarchy Chart | CDaoRecordset::IsFieldDirty | CDaoRecordset::IsFieldNull

© 2014 Microsoft