Dim session as New NotesSession
Dim sdb as NotesDatabase
Set sdb = session.GetDatabase( Server, Path )
Dim EmployeeUniqueIDFormula$
EmployeeUniqueIDFormula = "EmployeeUniqueID = " & Chr(34) & "899-123456" & Chr(34)
Dim cutoffdate As New NotesDateTime( "01/01/0001" )
Dim collect As NotesDocumentCollection
Set collect = sdb.Search( EmployeeUniqueIDFormula , cutoffdate , 0 )