No idea. Similar code works here. Step the code in the debugger and see if
you can find out that way what the problem is.
--
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
"Sanya Ibrahim" wrote in message
...
I am using a storeID arguement. I am not getting any exception but the
MaiItem is showing as nothing.
Sanya