Dim session As New NotesSession
Dim agent As NotesAgent
Dim lasttime As Variant
Set agent = session.CurrentAgent
lasttime = agent.LastRun
Dim session As New NotesSession
Dim agent As NotesAgent
Dim db As NotesDatabase
Set agent = session.CurrentAgent
Set db = session.CurrentDatabase
If ( agent.LastRun > db.LastFTIndexed ) Then
Call db.UpdateFTIndex( False )
End If