A
Amit
Hi,
This is a general question regarding checking a textfield
for Null or zero-length.
I've seen instances of code like this:
a. If (IsNull(Me.txtName)) or (Len(Me.txtName) = 0)
Then ...
b. If (Len(Me.txtName & "") = 0) Then ...
I was wondering if there are situations where a. is
preferred over b., and vice versa, or can either be used
interchangeably?
Comments?
-Amit
This is a general question regarding checking a textfield
for Null or zero-length.
I've seen instances of code like this:
a. If (IsNull(Me.txtName)) or (Len(Me.txtName) = 0)
Then ...
b. If (Len(Me.txtName & "") = 0) Then ...
I was wondering if there are situations where a. is
preferred over b., and vice versa, or can either be used
interchangeably?
Comments?
-Amit