ValidateOnSet Property

See Also        Applies To

Sets or returns a value that specifies whether or not the value of a CdbField object is immediately validated when the object's Value property is set (Microsoft Jet workspaces only).

Syntax

VOIDSetValidateOnSet(BOOL bFlag );

BOOLGetValidateOnSet(VOID);

Parameters

Type Argument Description
BOOL bFlag A Boolean.

TRUEthe validation rule is checked when you set the object's Value property.

FALSEthe validation rule is checked when the record is updated.


Remarks

Only CdbField objects support the ValidateOnSet property as read/write.

Setting the ValidateOnSet property to True can be useful in a situation when a user is entering records that include substantial Memo data. Waiting until the Update call to validate the data can result in unnecessary time spent writing the lengthy Memo data to the database if it turns out that the data was invalid anyway because a validation rule was broken in another field.