…taking this little blurb…
Set db = s.Currentdatabase
Set dc = db.Ftsearch( query, 0, FT_DATE_ASC )
If dc.Count = 0 Then Exit sub
set doc = dc.Getfirstdocument()
While Not (doc Is Nothing)
Call doc.putinFolder ( yearString, False)
Set doc = dc.Getnextdocument( doc )
Wend
The doc collection is from the inbox in a mail file.
when I run this, it appears to not move or copy the memo document from inbox to the %year%folder. but it appears to link them.
After this is run, it appears that the desired docs is in the folder, but a duplicate still exist in inbox. If I delete the one from inbox… the one in the folder disappears also…and visa versa…
Can anyone please tell me what I’m missing?
~Brett