EntryID question

J

Jeff Mowatt

I'm using OL2000 in an attempt to create an array holding dates of
Appointment recurrences.

Building a collection of Appointments items I want to restrict the EntryID
such that I only see those that are recurrences of the one I have just
saved.

I've tried oColl.Restrict("[EntryID] = '"&item.entryid&"'") and variations
of this syntax but cannot get the statement to be accepted as valid my
statement also fails in the Start() method.

The sort method doesn't work either "[EntryID]" is invalid there too.

Yet I can read each item and compare using "oItem.EntryID = item.EntryID"
and get exactly what I expect.

I imagine that restricting the ID of the appointments would be more
efficient, but is it possible?

TIA

Jeff Mowatt
 
S

Sue Mosher [MVP]

EntryID is not allowable in a Restrict or Sort clause.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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

Top