Dim Filter As String
With e.Form.Controls("ComboBox1")
If .Value IsNot Nothing Then
Filter = "归属年度 = \'" & .Value & "\'"
End If
End With
With e.Form.Controls("ComboBox2")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "归属时期 = \'" & .Value & "\'"
End If
End With
If Filter > "" Then
Tables("认证信息").Filter = Filter
End If
Dim Book As New XLS.Book(ProjectPath & "attachments\\生存认证表.xls")
Book.Build()
Book.Save(ProjectPath & "Reports\\生存认证表.xls")
Dim Proc As New Process
Proc.File = ProjectPath & "reports\\生存认证表.xls"
Proc.Start()
Tables("认证信息").Filter = ""