Answer:
olItems.Restrict("[From] = 'John Doe()'");
>-----Original Message-----
>I'm trying to filter for a specific name using;
[quoted text clipped - 11 lines]
>
>.
Anita Gupta - 30 Dec 2003 17:40 GMT
If noticed that if the name contains an apostrophe such as: John O'Malley
this will cause problems with the search string. The only what that I've
figured out how to do it is with a construct such as:
olItems.Restrict("[From] = ""'John O'Malley()'""")
If you want to use a variable such as:
myVariable = "John O'Malley()"
Then you'd use a construct such as:
olItems.Restrict("[From] = """ & myVariable & """")
Anita
> Answer:
> olItems.Restrict("[From] = 'John Doe()'");
[quoted text clipped - 14 lines]
> >
> >.