Try this:
a = objTask.EntryID
b = objTask.Parent.StoreID
Set objTask = Nothing
Set objTask = oNS.GetItemFromID(a, b)
If Not (objTask Is Nothing) Then
objTask.Delete
Set objTask = Nothing
End If
What version of Outlook? Where is this code running? It's obviously either
VB6 or VBA code.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Job" wrote in message
...
Ken,
Your giving me too much credit. I'm not sure how to do what you've
suggested. Would it be like this?
a = objTask.Item("EntryID").Value
b = objTask.Item("StoreID").Value
Set objTask = Nothing
Set objTask = ...
not sure where to go..pretty new to this...thanks for your help