A
Andy
Is it possible to change a table field type and size of an existing table?
I have tried a number of ways but I keep getting "Invalid use of property"
I am converting a huge mess of tables and have so far have managed to
manually change every number or date field into a fixed length field for
exporting wuith the transfertext command. I have 4 fields that I cannot
change because they are linked everywhere and are primary keys. I decided to
try to copy the tables to "tables_Temp" and then step through the fields
changing the numberes fields using data held in a small conversion table
(referenced by a recordset - rst).
I assume that I am either trying to do the impossible or else doing
something stupid. I have a fall back that is more complicated of creating
new tables via a createtabledef and then appending the data to the new
tables.
Any ideas
code below
As usual many thanks in advance
Andy
With rst
If Left(fldTest.Name, 6) = !ded Then ' is this the correct
collection of tables?
Set fldTest.Type = dbText
Set fldTest.Size = !Size
End If
End With
I have tried a number of ways but I keep getting "Invalid use of property"
I am converting a huge mess of tables and have so far have managed to
manually change every number or date field into a fixed length field for
exporting wuith the transfertext command. I have 4 fields that I cannot
change because they are linked everywhere and are primary keys. I decided to
try to copy the tables to "tables_Temp" and then step through the fields
changing the numberes fields using data held in a small conversion table
(referenced by a recordset - rst).
I assume that I am either trying to do the impossible or else doing
something stupid. I have a fall back that is more complicated of creating
new tables via a createtabledef and then appending the data to the new
tables.
Any ideas
code below
As usual many thanks in advance
Andy
With rst
If Left(fldTest.Name, 6) = !ded Then ' is this the correct
collection of tables?
Set fldTest.Type = dbText
Set fldTest.Size = !Size
End If
End With