I kan se typerne her:
http://www.w3schools.com/ado/prop_type.aspEller bruge denne funktion til at konvertere tallet til noget tekst.
Function datatyper(dtype, charmax, nummax, numscale)
If dtype = 0 Then tmp = "Empty"
If dtype = 16 Then tmp = "TinyInt(" & nummax & ")"
If dtype = 2 Then tmp = "SmallInt(" & nummax & ")"
If dtype = 3 Then tmp = "Integer(" & nummax & ")"
If dtype = 20 Then tmp = "BigInt(" & nummax & ")"
If dtype = 17 Then tmp = "UnsignedTinyInt(" & nummax & ")"
If dtype = 18 Then tmp = "UnsignedSmallInt(" & nummax & ")"
If dtype = 19 Then tmp = "UnsignedInt(" & nummax & ")"
If dtype = 21 Then tmp = "UnsignedBigInt(" & nummax & ")"
If dtype = 4 Then tmp = "Single"
If dtype = 5 Then tmp = "Double(" & nummax & "," & numscale & ")"
If dtype = 6 Then tmp = "Currency(" & nummax & "," & numscale & ")"
If dtype = 14 Then tmp = "Decimal(" & nummax & "," & numscale & ")"
If dtype = 131 Then tmp = "Numeric(" & nummax & "," & numscale & ")"
If dtype = 11 Then tmp = "Boolean"
If dtype = 132 Then tmp = "UserDefined"
If dtype = 12 Then tmp = "Variant"
If dtype = 9 Then tmp = "Dispatch"
If dtype = 13 Then tmp = "Unknown"
If dtype = 72 Then tmp = "Guid"
If dtype = 7 Then tmp = "Date"
If dtype = 133 Then tmp = "DBDate"
If dtype = 134 Then tmp = "DBTime"
If dtype = 135 Then tmp = "Timestamp"
If dtype = 8 Then tmp = "BSTR"
If dtype = 129 Then tmp = "Char(" & charmax & ")"
If dtype = 200 Then tmp = "VarChar(" & charmax & ")"
If dtype = 201 Then tmp = "LongVarChar(" & charmax & ")"
If dtype = 130 Then
If int(charmax) <= 255 Then
tmp = "VarChar(" & charmax & ")"
Else
tmp = "Longtext"
End if
End if
If dtype = 202 Then
If int(charmax) <= 255 Then
tmp = "VarChar(" & charmax & ")"
Else
tmp = "Longtext"
End if
End if
If dtype = 203 Then
If int(charmax) <= 255 Then
tmp = "LongVarChar(" & charmax & ")"
Else
tmp = "Longtext"
End if
End if
If dtype = 128 Then tmp = "Binary"
If dtype = 204 Then tmp = "VarBinary"
If dtype = 205 Then tmp = "LongVarBinary"
datatyper = tmp
End Function