With e.Form.Controls("num1")
If .Value IsNot Nothing Then
If sc > "" Then
sc = sc & " And "
End If
sc = sc & "党龄" & str& '" & .Value & "'"
End If
End With
With e.Form.Controls("num1") '''指向是同一个控件
If .Value IsNot Nothing Then
If sc > "" Then
sc = sc & " And "
End If
sc = sc & "党龄" & str& '" & .Value & "'"
End If
End With