Hello, When we do archive using “Archive\select Document”, the coding will be run below, my question is
“Call db.ArchiveNow(coll)”, I don’t know about the “ArchiveNow(coll)”, where can I find the coding if it is not Notes method? Because running stoped here and a error message appears told me I don’t have access to do archive, but I checked the ACL, I have designed access, and it works fine before the administor changed ACL.
Thanks a lot in advance.
Linda
Sub Initialize
On Error Goto Trap
Dim s As New notessession
Dim uiws As New notesuiworkspace
Dim db As notesdatabase
Dim coll As notesdocumentcollection
Dim StringTable As New mailtoolsstringtable
Set db = s.currentdatabase
Set coll = db.unprocesseddocuments
If YesNoPrompt(StringTable.GetString(TOOL_STRING+76,coll.count),StringTable.GetString(TOOL_STRING+75,Null)) Then
Archive:
Call db.ArchiveNow(coll)
Call uiws.Viewrefresh()
End If
Exit Sub
Trap:
If YesNoPrompt(Error$ & Chr(10) & StringTable.GetString(TOOL_STRING+74,Null),StringTable.GetString(TOOL_STRING+75,Null)) Then
If uiws.Currentdatabase.Editarchivesettings() Then
Resume Archive
Else
End
End If
End If
End Sub