Jun 27, 2006 #1 Edski Programmer Aug 6, 2003 430 TH Does anyone know how to add a new field of type Integer to a table in Access using the ALTER TABLE syntax? Code: Db.Execute "ALTER TABLE MyTable ADD COLUMN myField Integer" works but adds a field of type Long Integer.
Does anyone know how to add a new field of type Integer to a table in Access using the ALTER TABLE syntax? Code: Db.Execute "ALTER TABLE MyTable ADD COLUMN myField Integer" works but adds a field of type Long Integer.
Jun 27, 2006 #2 JerryKlmns IS-IT--Management Feb 7, 2005 2,062 GR Db.Execute "ALTER TABLE MyTable ADD COLUMN myField SMALLINT" Keep this handy http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/html/acintsql.asp Upvote 0 Downvote
Db.Execute "ALTER TABLE MyTable ADD COLUMN myField SMALLINT" Keep this handy http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k/html/acintsql.asp
Jun 27, 2006 Thread starter #3 Edski Programmer Aug 6, 2003 430 TH Doh! ...Thanks. Nice hyperlink by the way. Upvote 0 Downvote
Jun 27, 2006 #4 JerryKlmns IS-IT--Management Feb 7, 2005 2,062 GR Yeah! And do study also the Fundamental & Advanced links mentioned at the bottom Upvote 0 Downvote