How to check if an Outlook Item has been "deleted or moved"

I

Ian Boyd

i enumerate all items (i.e. Tasks, Contacts, etc) into a listview. The user
can then edit an entry, and i call

Item.Display(False)

If the user then deletes the item, i don't know it. If i then try to get the
values from the object again (i.e. to update my listview, user
double-clicked on it), i get an error saying:

The item has been moved or deleted.


Since the item i am trying to reference knows that it has been moved or
deleted, is there no check i can perform to see if i should be deleting the
item from my listview?

i heard a rumor that if i store the Item's original Parent, and later
compare it with the Parent: i can tell if it has been moved or deleted. But
if the item has been deleted, that doesn't work: it gives me an error
saying:

The item has been moved or deleted.

So, how can i check if an Outlook Item has been "moved or deleted?"
 

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