请问用ADOX新建ACCESS表如何设置字段顺序?
Dim tbl As New Table
Dim cat As New ADOX.Catalog
.Columns.Append "Column1",200
.Columns.Append "Column2",200
.Columns.Append "Column3",200
.Columns.Append "Column4",7cat.Tables.Append tbl
在生成tbl之后,字段顺序很混乱,怎么设置字段顺序?

解决方案 »

  1.   

    为什么要指定表里面存储的字段顺序,使用“Select 字段列表”进行查询可以按照你想要的字段顺序返回。
      

  2.   

    这个问题我知道了,还有如何在两个access数据库间复制表结构?
      

  3.   

    http://support.microsoft.com/?id=299484
    很详细。
      

  4.   

    It is an issue related to the OLEDB 4.0 when opening an Access MDB database with Adox to CREATE / APPEND a new Table and the Columns will have a certain ordinal.Please use MSSQL instead of OLEDB to do the job with ADOX
    or use ADO OpenSchema that would do a similar job
    Details of both solutions and the problem are vailable in the followin link:http://support.microsoft.com/?id=299484good Luck!