我查找符合条件的记录后,怎样设置动态打印条件?Dim Filter As String
With e.Form.Controls("单位查找")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "使用单位 like '*" & .Value & "*'"
End If
End With
With e.Form.Controls("合同号查找")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "合同号 like '*" & .Value & "*'"
End If
End With
If Filter > "" Then
Tables("表A").Filter = Filter
End If
下面的语句怎样改?
Sheet(3,9).Value = "<日期 = # " & Date.Today & "#>" '写入打印条件