Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / February 2007

Tip: Looking for answers? Try searching our database.

Write event not firing in list view

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick H - 13 Feb 2007 14:40 GMT
I have created a addin that updates a sql DB with all info from the
calendar, task and contacts.As changes are made in Outlook the are
updated to the DB and as they are update in the DB the changes sent to
Outlook (this is working fine). The problem is, I originally had only
code on the write event of an item but in the list view of a folder
changes made to an item is not firing the write event. So I'm now
using SyncEnd() event and checking  LastModificationTime against a
date I store in the registry after each sync.

Outlook 2002 and 2003, VB6

Public Sub mysync_SyncEnd()
If ls_task_sync = "Y" Then
TaskDateCheck
End If
If ls_cal_sync = "Y" Then
CalendarDateCheck
End If
If ls_con_sync = "Y" Then
ContactDateCheck
End If
End Sub

'Some code from CalendarDateCheck:

ls_mod_time = sh.RegRead(key & "outlook_contacts_last_modify")
ls_find = "[LastModificationTime] > '" & Format(ls_mod_time, "ddddd
h:nn AMPM") & "'"
Set SafeItems = myContacts.Find(ls_find)     'Find first Appointment
Dim ade
Do While Not (SafeItems Is Nothing)
'Process data for items found
..
This seemed to be working BUT...........

Now the problem is that the EndSync event isn't firing consistently.
If the user hits F9 it works everytime. But on the timed sync setup in
Outlook it is not ever getting to the syncend event. I setup the sync
to include the folders I'm syncing with.

Hope that makes sense.
My question, is there an event or anyway to make sure I capture any
item changed in Outlook.Even when items are changed using ActiveSync.

Any help would be appreciated

Thanks, RickH
Michael Bauer [MVP - Outlook] - 14 Feb 2007 07:05 GMT
Why don't you use the ItemAdd, ItemChange and ItemRemove events?

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 Keep your Outlook categories organized!
 http://www.shareit.com/product.html?productid=300120654&languageid=1
 (German: http://www.VBOffice.net/product.html?pub=6)

Am 13 Feb 2007 06:40:09 -0800 schrieb Rick H:

> I have created a addin that updates a sql DB with all info from the
> calendar, task and contacts.As changes are made in Outlook the are
[quoted text clipped - 43 lines]
>
> Thanks, RickH
Rick H - 21 Feb 2007 14:53 GMT
On Feb 14, 2:05 am, "Michael Bauer [MVP - Outlook]" <m...@mvps.org>
wrote:
> Why don't you use the ItemAdd, ItemChange and ItemRemove events?
>
[quoted text clipped - 56 lines]
>
> - Show quoted text -

I originally had the ItemAdd, ItemChange and ItemRemove working but it
was not firing when ActiveSync was doing the change. I put these
events back in as they do seem to be more consistant then ItemWrite.
Thanks, Rick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.