Поделиться через


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  
);

Параметры

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

Заметки

You cannot set the validation text of an attached table.

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

Требования

Header: afxdao.h

См. также

Основные понятия

CDaoTableDef Class

CDaoTableDef Members

Hierarchy Chart

CDaoTableDef::SetValidationRule

CDaoTableDef::GetValidationText

CDaoTableDef::GetValidationRule