Case insensitive items.find

  • Thread starter Thread starter John Burch
  • Start date Start date
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] = ""(e-mail address removed)""
or
strFind = "[Email1Address] = "(e-mail address removed)"
Set objContact = objContactFolder.Items.Find(strFind)

Anybody know of a way to achive this?


Thanks

John
 
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.
 
Back
Top