原因找到!
用Table控件模拟关联表
Dim t As
Table = Tables("窗口1_Table1")
With
Tables("产品")
If .Current Is Nothing
Then
t.Filter = "False"
Else
t.Filter = "产品编号 =
" & .Current("产品编号")
End
IF
End
With
我加了个代码
Dim t As Table = Tables("窗口1_Table1")
With Tables("产品")
If .Current Is Nothing Then
t.Filter = "False"
Else
t.Filter = "产品编号 = " & .Current("产品编号")
t.Filter = "入院日期 = & ".Current("入院日期")
End IF
End With
结果出现
此主题相关图片如下:4.png
![dvubb 图片点击可在新窗口打开查看](UploadFile/2023-2/20232417575263357.png)
不知为何?
[此贴子已经被作者于2023/2/4 18:00:21编辑过]