Sub Exiting(Source As Field)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Set Currentdoc= uidoc.Document
valueout = uidoc.FieldGetText( "fieldname" )
Dim doc As NotesDocument
Set doc = uidoc.Document
If Not valueout = "" Then
If valuein = valueout Then
' Value has not changed and do nothing
Else
' Value has changed and change other field value
Currentdoc.otherfield="newvalue ' UIDOC reference
doc.co_notifyon = doc.co_anotifydate(0) ' DOC reference
End If
Call uidoc.refresh
End If
End Sub