Unable to RESTRICT Outlook items using Access VBA

D

David C. Holley

I've created a sub that successfully creates an AppointmentItem in
Outlook from Access. The sub captures the EntryId of the AppointmentItem
and saves it to the record. Now, I'm trying to write a sub that takes
the EntryId and uses it to delete or modify the AppointmentItem. The
problem that I'm having is that statement that I'm trying to use returns
the error message "THE PROPERTY "EntryId" IN THE CONDITION IS NOT VALID".

Set test = mailbox.Folders("Calendar").Items.Restrict("[EntryId] =
'000000003FDF81AC3C66094A9F4987D7E8C181E7A4522100'")

The Outlook AppointmentItem DOEST exist. The specific EntryID IS correct
and will be replaced with a reference to a form field.

Ideas?

David H
 

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