CDaoTableDef::SetValidationText

void SetValidationText( LPCTSTR lpszValidationText );
throw( CDaoException, CMemoryException );

Parameters

lpszValidationText

A pointer to a string expression that specifies the text displayed if entered data is invalid.

Remarks

Call this member function to set the exception text of a validation rule for a CDaoTableDef object with an underlying base table supported by the Microsoft Jet database engine. You cannot set the validation text of an attached table.

For more information on tabledefs, see the articles DAO Tabledef and DAO Tabledef: Using Tabledefs in Visual C++ Programmer's Guide. For related information, see the topic "ValidationText Property" in DAO Help.

CDaoTableDef OverviewClass MembersHierarchy Chart

See Also   CDaoTableDef::SetValidationRule, CDaoTableDef::GetValidationText, CDaoTableDef::GetValidationRule