-- [求助]报错是那问题?
If Forms("采购记录").opened()
Dim t As Table = Tables("采购记录_采购明细预览")
If Tables("采购").Current Is Nothing Then
t.Filter = "False"
Else
Dim Filter As String = "[采购单号] = \'" & e.Table.Current("采购单号") & "\'"
If DataTables("采购明细").Find(Filter) IsNot Nothing Then \'如果对应的订单明细有加载过
LockBaseMainForm() \'锁定主窗口
DataTables("采购明细").RemoveFor(Filter)
DataTables("采购明细").AppendLoad(Filter) \'则追载此订单的订单明细
UnLockBaseMainForm() \'解锁主窗口
Else
LockBaseMainForm() \'锁定主窗口
DataTables("采购明细").AppendLoad(Filter) \'则追载此订单的订单明细
UnLockBaseMainForm() \'解锁主窗口
End If
t.Filter = "[采购单号] = \'" & Tables("采购").Current("采购单号") & "\'"
End If
End If
此主题相关图片如下:报错2.jpg