Return a value formatted for an SQL script according to the specified DataTypeEnum. Binary columns return a value of 0, as JET SQL doesn't handle binary types. The XF augmented SQL scripts and processes the BINARY_UPDATE statement to allow binary values to be encoded to and from text.
The DAO Field DataTypeEnum
The variant value to be formatted
Script values for MSSQL script compatability rather than JET. Booleans will be scripted to bit, MSSQL date delimiters will be used.
Debug.Print SqlFormatFieldVal(dbBoolean, True)