CDaoTableDef::SetValidationText

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.

void SetValidationText( 
   LPCTSTR lpszValidationText  
);

Parameters

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

Remarks

You cannot set the validation text of an attached table.

For related information, see the topic "ValidationText Property" in DAO Help.

Requirements

Header: afxdao.h

See Also

Reference

CDaoTableDef Class

Hierarchy Chart

CDaoTableDef::SetValidationRule

CDaoTableDef::GetValidationText

CDaoTableDef::GetValidationRule

Other Resources

CDaoTableDef Members