closing form

P

philippe

Hello,
The code below works fine for the owner of the contact folder, but not for
readers who are not allowed to perform...

The problem is with " Item.Close(olDiscard) " which I use to avoid the user
being prompted to save|discard changes made by the Item_Open() function.

Does anyone know how to go round this problem ?
Thanks in advance,
Philippe

------------------------------------------
Function Item_Open()
Set objInsp = Item.GetInspector
Set objPage = objInsp.ModifiedFormPages("Général")
Set imgPicture = objPage.Controls("Image4")
If Item.BillingInformation <> "" Then
imgPicture.Picture = _
LoadPicture(Item.BillingInformation)
End If
End Function


Function Item_Close()
Item.Close(olDiscard)
End Function
 
S

Sue Mosher [MVP-Outlook]

You can't call Close inside the Close event. I don't know of any way to avoid that prompt if users can't save the item.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top