If Not IsNull([单位名称]) Or Not IsNull([登记时间]) Or Not IsNull([地址]) Or Not IsNull([法人代表]) Or _
Not IsNull([简并征期]) Or Not IsNull([经营范围]) Or Not IsNull([开业时间]) Or Not IsNull([联系电话]) Or _
Not IsNull([纳税人识别号]) Or Not IsNull([现状]) Or Not IsNull([信用等级]) Or Not IsNull([行业]) Or _
Not IsNull([性质]) Or Not IsNull([征收方式]) Then
Dim ctl As Control
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Or TypeOf ctl Is ComboBox Then
If Not IsNull(ctl) Then
MsgBox "Not Null"
Exit For
End If
End If
Next
Dim ctl As Control
Dim intCount As Integer, intNullCount As Integer
For Each ctl In Me.Controls
If TypeOf ctl Is TextBox Or TypeOf ctl Is ComboBox Then
intCount = intCount + 1
If IsNull(ctl) Then
intNullCount = intNullCount + 1
End If
End If
Next
If intCount = intNullCount Then
MsgBox "All Null"
End If