想让筛选出来的内容在副本表里体现出来,但是只有主表可以筛选结果出来,副本没有体现
Dim Filter As String
Dim tbl As Table = e.Form.Controls("Table1").Table
With e.Form.Controls("StartDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "开始日期 >= #" & .Value & "#"
End If
End With
With e.Form.Controls("EndDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "结束日期 <= #" & .Value & "#"
End If
End With
If Filter > "" Then
Tables("表A").Filter =Filter
End If
此主题相关图片如下:3.png
此主题相关图片如下:2.png