Dec 21, 2007 #1 jonney Instructor Joined Jun 17, 2003 Messages 35 Location 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
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
Dec 21, 2007 #2 jrbarnett Programmer Joined Jul 20, 2001 Messages 9,645 Location GB CurrentDb.Execute "alter table TableName add column ColumnName Text (20)" Change Text (20) to the data type and size you need when needed. John Upvote 0 Downvote
CurrentDb.Execute "alter table TableName add column ColumnName Text (20)" Change Text (20) to the data type and size you need when needed. John
Dec 21, 2007 #3 Remou Technical User Joined Sep 30, 2002 Messages 13,030 Location BE ADO with a data definition query is probably the best bet: http://office.microsoft.com/en-us/access/HA102061121033.aspx Upvote 0 Downvote
ADO with a data definition query is probably the best bet: http://office.microsoft.com/en-us/access/HA102061121033.aspx
Dec 21, 2007 Thread starter #4 jonney Instructor Joined Jun 17, 2003 Messages 35 Location GB Thanks for the prompt replies. That is very helpful Jonney Upvote 0 Downvote