Count entries of a view by 2 Keys

helloHow can i count entries in a view by 2 keys?

Subject: RE: count entries of a view by 2 Keys.

Dim varKeyArray(0 to 1) As VariantDim view As NotesView

varKeyArray(0) = first key

varKeyArray(1) = second key

Print view.GetAllEntriesByKey(array of key values, true).Count & " entries match"

This assumes the keys are in the first two sorted columns of the view.