Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Dim session As New NotesSession
Dim version As String
version = Left( session.NotesVersion , 9 )
If source.EditMode = True Then
If Not version = "Release 5" Then
continue = False
Messagebox "You must be running Lotus Notes version R5.0 or higher to use this utility.", 16, "Invalid Version"
End If
End If
End Sub