With e.Form.Controls("招聘人数") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "招聘人数 >=" & .Value End If End With With e.Form.Controls("招聘人数1") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "招聘人数 <=" & .Value End If End With