count memo characters

  • Thread starter Thread starter Allen Browne
  • Start date Start date
A

Allen Browne

In what context?

In a query, you could type something like this into the field row in query
design:
Len([MyMemo])
 
--- MSh --- said:
If Len(Me.CC) = Null Then
is it true?
value len a memo can be null when it was empty?

Null is unknown, so also the length will be unknown.

You could try concatenating with ZLS

Len(Me!CC & vbNullString)

Or test for Null with the IsNull function

If IsNull(Me!CC) Then
' it's Null
Else
' it's not Null
End If
 
Yes: Len(Null) will evaluate to Null.

If you wanted zero, use:
Nz(Len(Me.CC), 0)
 
If Len(Me.CC) = Null Then
is it true?
value len a memo can be null when it was empty?
 
You could try concatenating with ZLS

Len(Me!CC & vbNullString)

That will work in code, but you'd need this in a query:

Len(Me!CC & "")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top