test the return value of aFolder.items.find(filter) method
It's ...
If MyItem Is Nothing Then
... or ...
If Not MyItem Is Nothing
You can also use the TypeName() function.
--
Sue Mosher, Outlook MVP
Author of
Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours
Microsoft Outlook 2000 E-mail and Fax Guide
Outlook and Exchange solutions at http://www.slipstick.com
Quote:
> Hello,
> How to test if the "myItem = aFolder.Items.Find(filter)" method has found
> something or not.
> If i test the myItem (=Nothing or not), the compilator doesn't accept.
Why?
> How to test the myItem value? Will i be forced to use exceptions?
> Thank's for your help.
> Didier