folderOutlook.Items.Restrict() Multiple restictions

alexbeatle

New member
Local time
Today, 11:03
Joined
Sep 21, 2014
Messages
9
Good day,

Can folderOutlook.Items.Restrict() accept multiple filters: fromemail and subject?

This doesn't work:
Code:
sCriteria = "@SQL=" & Chr(34) & "urn:schemas:httpmail:subject" & Chr(34) & " like '%Request%'" & _
" " & Chr(34) & "urn:schemas:httpmail:fromemail" & Chr(34) & " like '%test@gmail.com%'"
Set folderOutlookItems = folderOutlook.Items.Restrict(sCriteria)

Thanks
 

Users who are viewing this thread

Back
Top Bottom