If Forms("采购goodsid").Opened() '一定要判断用于模拟关联表的窗口是否已经打开
Dim t As Table = Tables("采购明细")
With Tables("采购输入_tabel1")
If .Current Is Nothing Then
t.Filter = "False"
Else
t.Filter = "采购单号 = '" & .Current("采购单号") & "'"
t.Filter = "货号 = '" & .Current("货号") & "'"
End If
End With
End If
要求是“采购单号”=“采购单号”,“货号”=“货号”(都是字符型)
上述代码对吗,主要是
t.Filter = "采购单号 = '" & .Current("采购单号") & "'"
t.Filter = "货号 = '" & .Current("货号") & "'"
这句是这样吗?