对账窗体_出库订单_CurrentChanged
If Tables("对账窗体_出库订单").Current Is Nothing Then Return
Tables("对账窗体_出库明细").Filter = "出库piao号 = '" & Tables("对账窗体_出库订单").Current("出库piao号") & "'"
对账窗体_ckfs_TextChanged
Dim Filter As String
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
With e.Form.Controls("ckfs")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "出库方式 = '" & .text & "'"
End If
End With
If Filter > "" Then
Tables("对账窗体_出库订单").Filter = Filter
End If
[此贴子已经被作者于2018/3/1 15:54:25编辑过]