Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I chk if memo field is empty? 1

Status
Not open for further replies.

steve728

Programmer
Mar 16, 2003
536
0
0
US
I'm used to using the following:

If rs.fields(&quot;Memo&quot;).value <> &quot;&quot; Then
Process code ...
End If

Thank you Cyber Buddies!

Steve
 
Try this:

If Len(Nz(rs.fields, &quot;&quot;)= 0 Then
Process code ...
End If

:)WB
 
To catch both Null and Zero-length:
Code:
If rs.Fields(&quot;Memo&quot;).Value & &quot;&quot; = &quot;&quot; Then
  'Process code...
End If
 
Thank you! Thank you!
These suggestions did the trick!

Steve
 
Sorry, I didn't catch your &quot;<>&quot;. My example should be:
Code:
If rs.Fields(&quot;Memo&quot;).Value & &quot;&quot; <> &quot;&quot; Then
  'Process code...
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top