Hi,
für was workspace und database?

Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
Dim thisdoc As NotesDocument
Set thisdoc = source.Document
If Not ( source.EditMode ) Then
thisdoc.counterstrike="nein"
Call thisdoc.Save(True, True,True)
End If
End Sub