closing form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Back
Top