PDA

View Full Version : MSOutlook Forms



CBrine
02-15-2007, 11:45 AM
I've inherited an application that we use to send status updates through our head office. The application was work fine until a few days ago. Now, all of the sudden, exiting from the form is causing an error. I've entered the debugger, and this line is selected.

item.close 1

I don't know much about outlook forms, so I guessing at the meaning of the code. I was not able to a set item = anywhere, so I'm assuming that this is similiar to the excel Me statement and refers to the form itself. Close is pretty easy, and I'm assuming the 1 represents the save flag being set to false.
I'm not sure what has changed to cause this issue, but Outlook 2003 is failing on it, but not Outlook 2000. We have autoupdates turned on, so it could be some patch that is causing this. Can I modify the code so that it works with Outlook 2003. Maybe changing it to "Me.close 1".

Thanks in advance

Cal

CBrine
02-15-2007, 02:50 PM
Ok,
I've got a little bit of an update. We rolled back the Jan 9 patch for outlook, and the code works once again. The only problem is, we don't want to do that:-).
I've done about 1 1/2 of web searches to see if I can find any information on the issue, and the only thing that comes close is an article about outlook 2007, and the item_close() event. It appears that microsoft in it's infinite wisdom, has decided to not allow you to call the item.close method in the item_close event. It appears that it was failing intermitinly, so they decided to eliminate it, instead of fixing it.
I'm wondering if someone at MS looked at that, and thought hmmmm....that would be a good solution for 2003 as well.
I was not able to find anything regarding this in reference to Outlook 2003, so if you happen to see something, let me know.

Cal

CBrine
02-16-2007, 08:22 AM
I was finally able to find a link showing that I'm not the only one dealing with this.
http://help.lockergnome.com/office/Update-KB924085-MailItem-delete-fail-ftopict922109.html

It seems that my threoy matches that of the MS MVP. Still no real resolution, looks like I may need to change my code. Just thought I would post this here in case someone else encounters the issue.

Cal