Hi. I have a problem with a server agent which runs on schedule. it seems the agent runs on time, but it cannot get value properly.
the codes are below;
Dim s As New notessession
Dim db As NotesDatabase
Dim v As NotesView
Dim col As NotesViewEntryCollection
Dim ent As NotesViewEntry
Set db = s.CurrentDatabase
Set v = db.GetView("WHOrder")
Set col = v.AllEntries
num = col.Count
Print Cstr(num) + " documents found"
The view has 4 documents but the message shows 0 document.
It runs properly when it is run with notes client on server.
Thanks.