G
Guest
I am programmatically creating a new field using this code (per examples in the MS KB):
Set abc = CurrentDb.TableDefs("Table1").CreateField("Field1").Type
abc.Type= dbText
However, the Type property will accept only the numeric constants (10 for dbText in this case) not the literals. Use of "dbText" or even "Text" generates a "Variable not defined" error.
There is no reference for the numeric/literal associations in the help files, so I am left with reverse engineering this by creating a field, then reading its properties to find the numeric constants.
Why is there no literal-to-numeric list in the help files, and how can I enable literal constants?
Set abc = CurrentDb.TableDefs("Table1").CreateField("Field1").Type
abc.Type= dbText
However, the Type property will accept only the numeric constants (10 for dbText in this case) not the literals. Use of "dbText" or even "Text" generates a "Variable not defined" error.
There is no reference for the numeric/literal associations in the help files, so I am left with reverse engineering this by creating a field, then reading its properties to find the numeric constants.
Why is there no literal-to-numeric list in the help files, and how can I enable literal constants?