Hi All,
I dynamically create an Ms-Access table (tblDest) using
the fielddefs of an Interbase table (tblSource).
for x := 0 to tblSource.FieldDefs.Count -1 do
begin
with tblDest.FieldDefs.AddFieldDef do
begin
Name := tblSource.Fields[x].DisplayName;
DataType := tblSource.Fields[x].DataType;
Size := tblSource.Fields[x].Size;
end;
end;
tblDest.tableName := tblSource.tablename;
tblDest.CreateTable;
The problem is when assigning a datatype of 'ftFloat', the
Access table does not recognise this as a 'Double' but rather as an Integer. Anyone know why?
I am using ODBC to connect to both interbase and Access databases.
thanks!
Ryan
I dynamically create an Ms-Access table (tblDest) using
the fielddefs of an Interbase table (tblSource).
for x := 0 to tblSource.FieldDefs.Count -1 do
begin
with tblDest.FieldDefs.AddFieldDef do
begin
Name := tblSource.Fields[x].DisplayName;
DataType := tblSource.Fields[x].DataType;
Size := tblSource.Fields[x].Size;
end;
end;
tblDest.tableName := tblSource.tablename;
tblDest.CreateTable;
The problem is when assigning a datatype of 'ftFloat', the
Access table does not recognise this as a 'Double' but rather as an Integer. Anyone know why?
I am using ODBC to connect to both interbase and Access databases.
thanks!
Ryan