T
Tom P.
Hello,
I'm trying to change the graphic of a tab using the
standard Access 2002 Tab Control based on whether or not
the memo field on the tab contains any text.
Displaying/changing the graphic is not difficult nor the
issue. The problem is what function should be used to
determine if the field contains no text?
Let me explain...
In the "On Current" event for the form I have a MsgBox
set to display:
Stuff in field on the form: content2_text.Value
IsNull: IsNull(content2_text.Value)
IsEmpty: IsEmpty(content2_text.Value)
Chars >0: (Len(content2.Value) > 0)
Chars: Len(content2.Value)
Much to my surprise, I get results such as these:
Stuff in field on the form:
IsNull: True
IsEmpty: False
Chars >0:
Chars:
Stuff in field on the form:
IsNull: False
IsEmpty: False
Chars >0:
Chars:
Even though there is not text in the field, VBA still
seems to think there is.
However, this seems to work consistently!?:
IsNull(Len(content2.Value) = "")
What am I missing, besides a clue? ;-)
Thanks,
Tom
I'm trying to change the graphic of a tab using the
standard Access 2002 Tab Control based on whether or not
the memo field on the tab contains any text.
Displaying/changing the graphic is not difficult nor the
issue. The problem is what function should be used to
determine if the field contains no text?
Let me explain...
In the "On Current" event for the form I have a MsgBox
set to display:
Stuff in field on the form: content2_text.Value
IsNull: IsNull(content2_text.Value)
IsEmpty: IsEmpty(content2_text.Value)
Chars >0: (Len(content2.Value) > 0)
Chars: Len(content2.Value)
Much to my surprise, I get results such as these:
Stuff in field on the form:
IsNull: True
IsEmpty: False
Chars >0:
Chars:
Stuff in field on the form:
IsNull: False
IsEmpty: False
Chars >0:
Chars:
Even though there is not text in the field, VBA still
seems to think there is.
However, this seems to work consistently!?:
IsNull(Len(content2.Value) = "")
What am I missing, besides a clue? ;-)
Thanks,
Tom