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.
 

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

Back
Top