Dim Filter As String = "1=1"
With e.Form.Controls("comboBox15")
If .Value IsNot Nothing Then
Filter &= " and 年度 = '" & .Value & "'"
End If
End With
With e.Form.Controls("comboBox1")
If .Value IsNot Nothing Then
Filter &= " and (接收月份 = '" & .Value & "' or 完成月份 = '" & .Value & "')"
End If
End With
With e.Form.Controls("comboBox2")
If .Value IsNot Nothing Then
Filter &= " and (完成月份 = '" & .Value & "' or 接收月份 = '" & .Value & "')"
End If
End With
With e.Form.Controls("comboBox16")
If .Value IsNot Nothing Then
Filter &= " and 受伤害职工姓名 = '" & .Value & "'"
End If
End With