Outlook OM : Method Restrict() has problems with parentheses

T

tsfreaks

I'm trying to filter for a specific name using;
olItems.Restrict("[From] = John Doe()");

Notice the parentheses in the string. If the string
contains parentheses in it, I get the following exception.

An unhandled exception of
type 'System.Runtime.InteropServices.COMException'
occurred in ioemail.dll
Additional information: Condition is not valid.

How do I get Restrict to work with parentheses?
 

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