C
Chris Fannin
I'm having an issue using .Not on a CDO MessageFilter. Here's the code:
Set objFilter = objItems.Filter
objFilter.Not = True
Set objField = objFilter.Fields.Add("InquiryStatus", vbString, "Closed")
Set objField2 = objFilter.Fields.Add("BTImport", vbBoolean, "True")
Text1.Text = objItems.Count
It gives the error when trying to retrieve objItems.Count. However, if I
comment either one of the fields, it returns a value without error. It seems
to not want more than one filter value when using Not.
Anyone have any idea why this is failing when both fields are used?
Set objFilter = objItems.Filter
objFilter.Not = True
Set objField = objFilter.Fields.Add("InquiryStatus", vbString, "Closed")
Set objField2 = objFilter.Fields.Add("BTImport", vbBoolean, "True")
Text1.Text = objItems.Count
It gives the error when trying to retrieve objItems.Count. However, if I
comment either one of the fields, it returns a value without error. It seems
to not want more than one filter value when using Not.
Anyone have any idea why this is failing when both fields are used?