有一个“对帐单”表,下面的代码运行出错,提示没有“对帐单”表,但是明明有“对帐单”表
Dim r As Integer = DataTables("对帐单").DataRows.Count
Dim dr As DataRow = DataTables("对帐单").dataRows(r -1)
Dim a As Integer = dr("_Identify")
Forms("对帐单").Controls("对账单号").value = a +10000
把“对帐单”表改名”dzd",上面的代码改为下面代码,就不出错了,搞不明白为什么?
Dim r As Integer = DataTables("dzd").DataRows.Count
Dim dr As DataRow = DataTables("dzd").dataRows(r -1)
Dim a As Integer = dr("_Identify")
Forms("dzd").Controls("对账单号").value = a +10000