CdbField::SetDefaultValue, GetDefaultValue Property

Sets or returns the default value of a CdbField object.

Syntax

VOIDSetDefaultValue(LPCTSTR pstr);

CStringGetDefaultValue(VOID);

Set Parameters

Type Example Description
LPCTSTR pstr A pointer to a string that contains a maximum of 255 characters. It can be either text or an expression. If the property setting is an expression, it can't contain user-defined functions, Microsoft Jet database engine SQL aggregate functions, or references to queries, forms, or other Field objects.