G
Guest
H
Table Transport details all transport costs incurred from an Origin to a Customer. The table has a field for Customers (destinations) and all other fields refer to an Origin (of which there are about 10. Therefore 11 columns in this table).
It is possible that in the future an Origin (ie. another field) may be added to this table. I have tried to allow for this in VBA by
NewOrigin = cmbOrigin (ie, user enters details of new Origin into a form
Set fld = CurrentDb.CreateTableDef("Transport").CreateField(NewOrigin, Number
CurrentDb.CreateTableDef("Transport").Fields.Append fl
CurrentDb.TableDefs.Refres
I keep encountering an error "Data type conversion error". It seems to be associated with my field type being specified as 'Number'. Any ideas on how I can overcome this?
I look forward to a reply
Thank
Jad
Table Transport details all transport costs incurred from an Origin to a Customer. The table has a field for Customers (destinations) and all other fields refer to an Origin (of which there are about 10. Therefore 11 columns in this table).
It is possible that in the future an Origin (ie. another field) may be added to this table. I have tried to allow for this in VBA by
NewOrigin = cmbOrigin (ie, user enters details of new Origin into a form
Set fld = CurrentDb.CreateTableDef("Transport").CreateField(NewOrigin, Number
CurrentDb.CreateTableDef("Transport").Fields.Append fl
CurrentDb.TableDefs.Refres
I keep encountering an error "Data type conversion error". It seems to be associated with my field type being specified as 'Number'. Any ideas on how I can overcome this?
I look forward to a reply
Thank
Jad