check for empty text field

K

kathy

What is the correct syntax to check for an empty text
field?

I've tried

If Status_of_Activity = " " Then
If Status_of_Activity = blank Then
If Status_of_Activity = empty Then
If Status_of_Activity = Null Then

Thank you!
 
M

Max Smart

If Trim([Status_of_Activity]) & "" = "" Then

That will catch both null values and empty string values.

Max
 

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

Top