Find using subject

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Hi
Is it possible to search on the subject field as you would
on the sender name?

Set myItem = myItems.Find("[SenderName] = 'Bob Smith'")

I am trying to find items with the subject starting Fax
received with the code below.

Set myItem = myItems.Find("[Subject] = 'Fax received*'")

Anyone point me in the right direction.

Thanks
Joe
 
Hi Joe,
Is it possible to search on the subject field as you would
on the sender name?

yes, that´s possible.
Set myItem = myItems.Find("[Subject] = 'Fax received*'")

This search would require the Like-Operator instead of "=" and is not
supported.

You can loop through all items and compare each subject with your
string, e.g.:

for each obj in myItems
if obj.subject like "Fax received*" then
do s.th.
endif
next
 
Hi
Thanks for your reply I will give your suggestion a go.
Regards
Joe
-----Original Message-----
Hi Joe,
Is it possible to search on the subject field as you would
on the sender name?

yes, that´s possible.
Set myItem = myItems.Find("[Subject] = 'Fax received*'")

This search would require the Like-Operator instead of "=" and is not
supported.

You can loop through all items and compare each subject with your
string, e.g.:

for each obj in myItems
if obj.subject like "Fax received*" then
do s.th.
endif
next

--
Viele Grüße
Michael Bauer

.
 
Back
Top