Provided by Allen Browne, August 2004. Updated February 2008.
Field type reference - names and values for DDL, DAO, and ADOX
You can create and manage tables in Access using:
- the interface (table design view);
- Data Definition Language (DDL) query statements;
- DAO code;
- ADOX code.
Each approach uses different names for the same field types. This reference provides a comparison.
For code to convert the DAO number into a field type name, see FieldTypeName().
| JET (Interface) |
DDL (Queries) |
DAO constant / decimal / hex |
ADOX constant / decimal / hex |
| Text |
TEXT (size) |
dbText |
10 |
A |
adVarWChar |
202 |
CA |
| |
dbComplexText |
109 |
6D |
|
|
|
|
CHAR (size) |
dbText |
10 |
A |
adWChar |
130 |
82 |
| Memo |
MEMO |
dbMemo |
12 |
C |
adLongVarWChar |
203 |
CB |
| Number: Byte |
BYTE |
dbByte |
2 |
2 |
adUnsignedTinyInt |
17 |
11 |
| |
dbComplexByte |
102 |
66 |
|
|
|
| Number: Integer |
SHORT |
dbInteger |
3 |
3 |
adSmallInt |
2 |
2 |
| |
dbComplexInteger |
103 |
67 |
|
|
|
| Number: Long |
LONG |
dbLong |
4 |
4 |
adInteger |
3 |
3 |
| |
dbComplexLong |
104 |
68 |
|
|
|
| Number: Single |
SINGLE |
dbSingle |
6 |
6 |
adSingle |
4 |
4 |
| |
dbComplexSingle |
105 |
69 |
|
|
|
| Number: Double |
DOUBLE |
dbDouble |
7 |
7 |
adDouble |
5 |
5 |
| |
dbComplexDouble |
106 |
6A |
|
|
|
| Number: Replica |
GUID |
dbGUID |
15 |
F |
adGUID |
72 |
48 |
| |
dbComplexGUID |
107 |
6B |
|
|
|
| Number: Decimal |
DECIMAL (precision, scale) |
dbDecimal |
20 |
14 |
adNumeric |
131 |
83 |
| |
dbComplexDecimal |
108 |
6C |
|
|
|
| Date/Time |
DATETIME |
dbDate |
8 |
8 |
adDate |
7 |
7 |
| Currency |
CURRENCY |
dbCurrency |
5 |
5 |
adCurrency |
6 |
6 |
| Auto Number |
COUNTER (seed, increment) |
dbLong with attributes |
4 |
4 |
adInteger with attributes |
3 |
3 |
| Yes/No |
YESNO |
dbBoolean |
1 |
1 |
adBoolean |
11 |
B |
| OLE Object |
LONGBINARY |
dbLongBinary |
11 |
B |
adLongVarBinary |
205 |
CD |
| Hyperlink |
|
dbMemo with attributes |
12 |
C |
adLongVarWChar with attributes |
203 |
CB |
| Attachment |
|
dbAttachment |
101 |
65 |
|
|
|
|
BINARY (size) |
dbBinary |
9 |
9 |
adVarBinary |
204 |
CC |
Footnotes: