Appending Fields to a TAble

harrisw

Registered User.
Local time
Today, 18:33
Joined
Mar 27, 2001
Messages
131
How can I create extra fields in an existing table using code?
 
You can use code :

Docmd.runsql "Alter table tblXXX add column fieldxxx text(20)"

you substitute the table name and field name as needed.


or

Docmd.runsql "Alter table tblxxx add colunn fieldxxx number"

For more ifo, please look at help for ALTER TABLE
 

Users who are viewing this thread

Back
Top Bottom