Append 方法(ADOX 列)

适用于:Access 2013、Office 2013

将新的 Column 对象添加到 Columns 集合。

语法

。 AppendColumn [,Type] [,DefinedSize]

参数

参数 说明
要追加的 Column 对象,或者要创建并追加的列的名称。
Type 可选。 指定该列的数据类型的 Long 值。 Type 参数对应于 Column 对象的 Type 属性。
DefinedSize 可选。 指定该列的大小的 Long 值。 DefinedSize 参数对应于 Column 对象的 DefinedSize 属性。

注意

[!注释] 如果追加到 Tables 集合中的 Table 中没有某个 Column ,则在将该 Column 追加到 IndexColumns 集合时将发生错误。