Conflict Error Procedure

J

Joel

I use these procedures to in trying to avoid conflict errors for a Public
Task Folder. I still get the conflict errors every once in a while. Do you
see a problem with my logic here?

'--------------------------------------------------------------------------
Function Item_Open(ByVal Name)

On Error Resume Next

if Item.UserProperties("Oppen") = "" then
Item.UserProperties("Oppen") = "Open"
Item.Save
else
Item.UserProperties("Oppen2") = "DO NOT SAVE WHEN EXITING!"
end if

End Function
'--------------------------------------------------------------------------
Function Item_Write()

On Error Resume Next

if Item.UserProperties("Oppen2") = "DO NOT SAVE WHEN EXITING!" then
Item_Write = False
end if

End Function
'--------------------------------------------------------------------------
Function Item_Close()

On Error Resume Next

if Item.UserProperties("Oppen2") = "" then
Item.UserProperties("Oppen") = ""
Item.Save
End If

End Function
'--------------------------------------------------------------------------
 

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