Item Already updated
We are having trouble moving custom form items between public folders. The items need to go from a master calendar to individual calendars. I added some code to trap the additem events for the folders which checks the message type and if its an appointment forces the message class to the custom form class and clears the recurrence settings. We can move the items between folders provided we move to folders on the same date. If we try and move to another date we get the 'already updated message'. This appears logical enough as we are changing the item in the add item event and outlook is changing the item in the background because of the date change - how do we get around this?
p.s. in the master calendar the items are maintained on a daily basis at the top of the form with no time allocated to them. Surely this means that when we move from the master to a specific time on the individual folders (even if its the same day) outlook is doing an update - but this doesn't cause an error!
p.p.s Running this on local calendars causes no problems at all. Its only on the clients site where the exchange(public) folders are used. The code trapping the events is running on more than 1 machine and it appears that the event is triggered on all logged in machines whether they moved the item or not (as they are all waiting for the add item event). But I am pretty sure it still failed with just the one machine logged in.
I would have expected this to be a fairly common issue but have seen nothing related to it posted anywhere. I havent worked much with VBA or outlook and I expect it's something silly i've overlooked, any help/guidance appreciated.
|