T
Terence Patterson
Hi there folks.
This is causing me a surprising amount of grief. I'm working on an
application that uses the Outlook View Control (Outlook XP) to view
the items in various Outlook folders based on their Categories.
Restricting the items to those that have specific Categories assigned
is no problem. I'm setting the .Restriction property of the control
to the appropriate criteria string, such as:
"[Categories]='<mycategory>'"
or
"[Categories]=""<mycategory>"""
- (interpreted as [Categories]="<mycategory>")
What I can't seem to get is the correct criteria syntax to limit the
view to UNCATEGORIZED items. I've tried the following:
"[Categories]=''"
and
"[Categories]="""""
- (interpreted as [Categories]="")
I've also tried experimenting with VB- and SQL-type keywords such as:
"[Categories] IS NULL"
and
"[Categories] IS EMPTY"
Is there a syntax detail or a keyword I'm missing here? Is there a
better way to do this, perhaps using the .ViewXML property? Any help
would be appreciated.
Thanks in advance.
- Terry
This is causing me a surprising amount of grief. I'm working on an
application that uses the Outlook View Control (Outlook XP) to view
the items in various Outlook folders based on their Categories.
Restricting the items to those that have specific Categories assigned
is no problem. I'm setting the .Restriction property of the control
to the appropriate criteria string, such as:
"[Categories]='<mycategory>'"
or
"[Categories]=""<mycategory>"""
- (interpreted as [Categories]="<mycategory>")
What I can't seem to get is the correct criteria syntax to limit the
view to UNCATEGORIZED items. I've tried the following:
"[Categories]=''"
and
"[Categories]="""""
- (interpreted as [Categories]="")
I've also tried experimenting with VB- and SQL-type keywords such as:
"[Categories] IS NULL"
and
"[Categories] IS EMPTY"
Is there a syntax detail or a keyword I'm missing here? Is there a
better way to do this, perhaps using the .ViewXML property? Any help
would be appreciated.
Thanks in advance.
- Terry