Times of India Tech: Latest IT, telecom, Internet, BPO news and updates

Sunday, March 31, 2013

VarType Constants


MS Access: VarType Constants

The syntax for the VarType function is:
VarType(variable_name)
It returns the type of value is currently stored in variable_name

Applies To

  • Access 2010, Access 2007, Access 2003, Access XP, Access 2000

Return Values

The return values for VarType are:
ConstantValueDescription
vbEmpty0Unitialized variable
vbNull1No valid data
vbInteger2Integer
vbLong3Long integer
vbSingle4Single-precision number
vbDouble5Double-precision number
vbCurrency6Currency
vbDate7Date
vbString8String
vbObject9Object
vbError10Error value
vbBoolean11Boolean
vbVariant12Variant
vbDataObject13Data Access Object
vbDecimal14Decimal
vbByte17Byte
vbLongLong20LongLong integer (only 64-bit platforms)
* Access 2010
vbUserDefinedType36User-defined type
vbArray8192Array

No comments:

Post a Comment