e.Form.Controls("Label6").Text = "正在院校筛选,请稍后..."
Application.DoEvents()
Dim timestart,timeend As Date
timestart=Date.now
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
With e.Form.Controls("ComboBox3")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "录取年度 = '" & .Value & "'"
End If
End With
If e.Form.Controls("GF").text > ""
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "平均分差值 <= " & e.Form.Controls("GF").text
End If
If e.Form.Controls("DF").text > ""
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "平均分差值 >= " & e.Form.Controls("dF").text
End If
If Filter > "" Then
Tables("年度院校提档线").Filter = Filter
End If
e.Form.Controls("Label6").Text = "院校筛选完毕!."
timeend=Date.now
e.Form.Controls("Label6").text="耗时" & (timeend-timestart).TotalSeconds & "秒"
Messagebox.Show("院校筛选完毕,请继续!")
MainTable = Tables("年度院校提档线")
复制到院校筛选结果表中