Case insensitive items.find

J

John Burch

Hi

I need to be able find a contact based on the email address that will
succeed irrespective of the case.

strFind = "[Email1Address] = ""[email protected]""
or
strFind = "[Email1Address] = "[email protected]"
Set objContact = objContactFolder.Items.Find(strFind)

Anybody know of a way to achive this?


Thanks

John
 
K

Ken Slovak - [MVP - Outlook]

If the email address is in the form of a string, use LCase to convert it to
all lower case and then filter on that. Or just make a compound filter
clause using Or.
 
Top