AdvancedSearch behavior
Thank you and Sue for each providing valuable specific insightful
instruction. I'll try each idea now.
I had a latency problem so if I can't remove it in time, I reposted the
question - please ignore it with my apologies.
On Wed, 1 Aug 2007 09:48:09 -0400, "Ken Slovak - [MVP - Outlook]"
wrote:
That is the correct DASL property tag for Subject (DASL is a query language
used for Advanced Search, among other things).
For the second search I'd write the search term this way to avoid errors:
strF = Chr(34) & "urn:schemas:httpmail:subject"" =
'ToStringTheImpossibleString'"
I would expect no results at all for your debug.print statements, the
AdvancedSearch method call returns right away and you get your results
asynchronously in the AdvancedSearch.Complete event handler.
For your final search term use something like this, always putting single
quotes around any folder name that has a space in it:
Set objSch = Application.AdvancedSearch _
(Scope:="'Deleted Items'", Filter:=strF, SearchSubFolders:=True)
|