View Single Post
  #2  
Old September 20th 06, 03:09 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default ContactItem.Save()

Look at the LastModificationTime property on the item. Use some sort of time
comparison so that unless a change hasn't occurred in x seconds or minutes
you don't synch the item. Something like that is about all you can do.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Virda" wrote in message
...
problem is whatever change is made in Contact folder's Contact Item I
capture the event 'ItemChange' and process that contactItem.

In Contact Item Add event there is a need of my program to send data to
server of perticular Contact Item after update the data I want to save it
by
using ContactItem.Save().

But, as soon as ContactItem.Save() function executed it raises the event
ContactItemChanged.

Due to this behaviour multiple times same data send to server.

Is there any way I could prevent this behaviour?

I am looking forward your answer.


Ads