Access VBA テーブル作成
ナビゲーションに移動
検索に移動
Access VBA テーブル作成
Access 2000
DAOを使用
Sub CreateTable () Dim dbs As Database Dim tbl As TableDef Dim fld As Field Set dbs = CurrentDB Set tbl = dbs.CreateTableDef("NewTableName") Set fld = tbl.CreateField("NewField", dbText) tbl.Fields.Append fld dbs.TableDefs.Append tbl dbs.TableDefs.Refresh End Sub
© 2006 矢木浩人