呵呵,楼主搞定了没有啊,建议好好看看:
http://www.foxtable.com/help/topics/1284.htm
If Forms("采购goodsid").Opened() '一定要判断用于模拟关联表的窗口是否已经打开
Dim t As Table = Tables("采购明细")
With Tables("采购输入_tabel1")
If .Current Is Nothing Then
t.Filter = ""
Else
t.Filter = "采购单号 = '" & .Current("采购单号") & "' And 货号 = '" & .Current("货号") & "'"
End If
End With
End If