Execute method (NotesDominoQuery - LotusScript)

Executes a query string passed in according to set parameters and returns a NotesDocumentCollection.

Defined in

NotesDominoQuery

Syntax

Set doccol = NotesDominoQuery.Execute(Query$)

Parameters

Query$

String. A query in DQL syntax.

Return value

NotesDocumentCollection

Example

Dim Query$ as String
Dim NotesDatabase db
Dim TheQuery As NotesDominoQuery
Dim doccol As NotesDocumentCollection
Set db = Session.getdatabase(my.nsf)
Set TheQuery = db.Createdominoquery()
Set Query = firstname = Annabelle and lastname = Stevens and Personview.dept = ˜Sales
Set doccol = TheQuery.Execute(Query)