CDaoTableDef::GetValidationText

CString GetValidationText( );
throw( CDaoException, CMemoryException );

Return Value

A CString object that specifies the text displayed if the user enters data that does not match the validation rule.

Remarks

Call this function to retrieve the string to display when a user enters data that does not match the validation rule. For a CDaoTableDef object, this CString is read-only for an attached table and read/write for a base 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::SetValidationText, CDaoTableDef::GetValidationRule