If rst.Fields("收费时间段一") = Null Then flag1 = True
If flag1= True Then
txt10.Text = " "
Else
txt10.Text = CStr(rst.Fields("收费时间段一"))
End If
rst.Fields("收费时间段一") 该字段是空的,既Null。
...全文
605打赏收藏
if 判断问题
If rst.Fields("收费时间段一") = Null Then flag1 = True If flag1= True Then txt10.Text = " " Else txt10.Text = CStr(rst.Fields("收费时间段一")) End If rst.Fields("收费时间段一") 该字段是空的,既Null。