P
Pendragon
Access03/WinXP
This should be fairly straightforward, so not sure what I am missing.
Looking at the help example for .CreateField (from the Northwind DB), I am
following the same format:
Set db = CurrentDb
set tdfNew = db.CreateTableDef("zTempBillInfo")
{definition of recordset}
rs.MoveFirst
With tdfNew
.Fields.Append .CreateField("ContactID", vbNumber)
.Fields.Append .CreateField("GroupA", vbCurrency)
...
End With
The code is bombing on the first .Fields.Append with an error "Data Type
Conversion Error" (#3421).
Ideas/suggestions?
Thanks.
This should be fairly straightforward, so not sure what I am missing.
Looking at the help example for .CreateField (from the Northwind DB), I am
following the same format:
Set db = CurrentDb
set tdfNew = db.CreateTableDef("zTempBillInfo")
{definition of recordset}
rs.MoveFirst
With tdfNew
.Fields.Append .CreateField("ContactID", vbNumber)
.Fields.Append .CreateField("GroupA", vbCurrency)
...
End With
The code is bombing on the first .Fields.Append with an error "Data Type
Conversion Error" (#3421).
Ideas/suggestions?
Thanks.