Hi,
I have one question for you,
Text entered field(good/bad) and target field(i.e, setti g value " " or text ) are two different fields or one field.
If it is one field, it will not work for you(it will go infinite loop, we have to add one condition at the starting),
If they are two different fields, it is easy to do,
Below code for one field, it is worked fine for me.
Sub msoxd_my_field1_OnAfterChange(eventObj)
if XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text = " " then
exit sub
End if
If eventObj.IsUndoRedo Then
Exit Sub
End If
if eventObj.Operation = "Delete" then
exit Sub
End if
Dim Value
Value=eventObj.NewValue
if Len(Value)>0 then
if Value<>"good" Then
XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text = " "
end if
end if
End Sub
Thanks
K.Ramana Reddy / http://www.ggktech.comIndia.