Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add a new field to a table using queries

Status
Not open for further replies.

jonney

Instructor
Jun 17, 2003
35
GB
I have a split database and I would like to be able to add a field to a table using either a query or some code. I hope that makes sense

Thanks

Jonney
 
CurrentDb.Execute "alter table TableName add column ColumnName Text (20)"

Change Text (20) to the data type and size you need when needed.

John
 
Thanks for the prompt replies. That is very helpful

Jonney
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top