Hello everyone,
I'd like to preface my post by saying that I have very limited knowledge of databases and LotusScript.
I'm using VBA to read Lotus Documents. I have a View whose columns are organized in the following manner:
Email Quantity - Customer Service Agent Name - Year - Month - Day - Hour - Recipient Name - Subject
This View is used to monitor how many emails each agent sends out and also provides a way to sample each of the agents emails. strSearchKey = Customer Service Agent Name
The "Count" method returns 2, which is only the number of documents in the first hour on the first day my "strSearchKey" occurs.
I know I am supposed to be using an array of keys, but the only thing I need to find is all the email sent by a certain Agent.
Do I need to ask the admin to change the View in Lotus so that the agent name is the first column? I tried FTSearch although the server responds that I have exceeded the number of queries in a temporary index search or something like that.
Again, sorry my beginners explanation and thank you for any help.
I'd like to preface my post by saying that I have very limited knowledge of databases and LotusScript.
I'm using VBA to read Lotus Documents. I have a View whose columns are organized in the following manner:
Email Quantity - Customer Service Agent Name - Year - Month - Day - Hour - Recipient Name - Subject
This View is used to monitor how many emails each agent sends out and also provides a way to sample each of the agents emails. strSearchKey = Customer Service Agent Name
Code:
...
Set NotesView = MailDb.GETVIEW("Stats\Envoyé par Agent")
Set NotesDocumentCollection = NotesView.GetAllDocumentsByKey(strSearchKey)
MsgBox (NotesDocumentCollection.Count)
Set DocumentA = NotesDocumentCollection.GETFIRSTDOCUMENT
...
The "Count" method returns 2, which is only the number of documents in the first hour on the first day my "strSearchKey" occurs.
I know I am supposed to be using an array of keys, but the only thing I need to find is all the email sent by a certain Agent.
Do I need to ask the admin to change the View in Lotus so that the agent name is the first column? I tried FTSearch although the server responds that I have exceeded the number of queries in a temporary index search or something like that.
Again, sorry my beginners explanation and thank you for any help.