Sets or returns a value that specifies the text of the message that your application displays if the value of a CdbField object doesn't satisfy the validation rule specified by the ValidationRule property setting (Microsoft Jet workspaces only).
Syntax
VOIDSetValidationText(LPCTSTR pstr );
CStringGetValidationText(VOID);
Parameters
| Type | Argument | Description |
| LPCTSTR | pstr | A pointer to a string that contains the text message. |
Remarks
For an object not yet appended to a collection, this property is read/write. For a CdbRecordset object, this property setting is read-only. For a CdbTableDef object, this property setting is read-only for a linked table and read/write for a base table.
For a CdbField object, use of the ValidationText property depends on the object that contains the Fields collection to which the CdbField object is appended, as the following table shows.
| Object appended to | Usage |
| CdbIndex | Not supported |
| CdbQueryDef | Read-only |
| CdbRecordset | Read-only |
| CdbRelation | Not supported |
| CdbTableDef | Read/write |