我无法使用DAO在Access DB中设置字段属性

时间:2019-12-20 16:41:06

标签: vba ms-access

我正在尝试使用DAO更改基于另一个表(表2)的表(表1)中的属性

我尝试:

Dim rst as DAO.recodset
dim rstCopy as DAO.recodset

   Set rst = CurrentDb.OpenRecordset(TablaAOrdenar, dbOpenSnapshot, dbSeeChanges)
   Set rstCopy = CurrentDb.OpenRecordset(TablaAOrdenar & "Desdoblada", dbOpenDynaset, dbSeeChanges)

        'Size
        rstCopy.Fields("name").Size = rst.Fields("name").Size

'and I receive error 3219 (operacion no válida)
'How i can do it?

0 个答案:

没有答案