Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_ScripterSQL Script Generation and Processing

Public Function GetFieldValidDefaultVal (
FieldType As DAO.DataTypeEnum,
Attributes As Long,
FieldLength As Integer
) As String

Get a valid default value for the passed type

FieldType as DAO.DataTypeEnum

The DAO Field DataTypeEnum

Attributes as Long

The DAO Field Attributes property

FieldLength as Integer

The field length property for variable length fields

Call Template:

Dim s As String
s = xf.Scripter.GetFieldValidDefaultVal(FieldType, Attributes, FieldLength)

See Also:

Example 1:

Debug.Print xf.Scripter.GetFieldValidDefaultVal(dbBoolean, 0, 0)             --> False
Debug.Print xf.Scripter.GetFieldValidDefaultVal(dbDate, 0, 0)                --> 1/01/1970
Debug.Print xf.Scripter.GetFieldValidDefaultVal(dbText, 0, 170)              --> -
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd