abenitez77
Registered User.
- Local time
- Today, 07:14
- Joined
- Apr 29, 2010
- Messages
- 141
I tried creating a new field using variables like this:
nFldType = "dbText"
nFldSize = "20"
tdf.Fields.Append tdf.CreateField(TblCol, nFldType, nFldSize)
But it does not like "dbText", when I use this it works:
tdf.Fields.Append tdf.CreateField(TblCol, dbText, nFldSize)
How can i get it to work with a variable in place? I have it in a function where it loops and creates decimal, text, currency, etc....
nFldType = "dbText"
nFldSize = "20"
tdf.Fields.Append tdf.CreateField(TblCol, nFldType, nFldSize)
But it does not like "dbText", when I use this it works:
tdf.Fields.Append tdf.CreateField(TblCol, dbText, nFldSize)
How can i get it to work with a variable in place? I have it in a function where it loops and creates decimal, text, currency, etc....