changing field prop's or copying data to another table 
Author Message
 changing field prop's or copying data to another table

hi there,

I have a table that i am trying to update 6 fields but the field size is two
small. Is the a way of change the field size in VBA or will i have to create
an update query to copy from the old table to another table with the field
sizes changed.

Could some-one please help me out



Tue, 25 Jun 2002 03:00:00 GMT  
 changing field prop's or copying data to another table
Hi Peter,
    Once a field has been appended to a tabledef, there is no way to change
its size or datatype with code. However, you could append a new field to the
same table that is the size and/or type you desire, copy the data, and drop
the original field.
    Even easier would be to open the table in design view and change the
field's size with Access. Is there some reason why this is not an option?

--Doug


Quote:
> hi there,

> I have a table that i am trying to update 6 fields but the field size is
two
> small. Is the a way of change the field size in VBA or will i have to
create
> an update query to copy from the old table to another table with the field
> sizes changed.

> Could some-one please help me out



Tue, 25 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Changing 'field size' in existing table

2. Help Changing Table's Field Type and Format using DOA

3. Change field data type in a table

4. Stepping through a Table and changing data in fields

5. Change a field's data type through code

6. Copy fields from record in table A to record in table B using VBA

7. Help Help Need to copy a field from one table into another table

8. Copying DBGrid contents to clipboard (Or copying a table from a Data component to clipboard)

9. copying a field's value to another field

10. Copying data from table to table

11. Copy/Saving a recordset from one data table to another table

12. Copy all data from a Table to other Table

 

 
Powered by phpBB® Forum Software