I Really don’t understand what you are talking about nor if you are trying to help or not.Nevertherless I solve with the following code on QuerySave action:
If Source.Document.fieldtocheck=" " Then
Call source.Refresh(True)
Dim rtitem As NotesRichTextItem
Set rtitem = source.Document.GetFirstItem( “attachment1” )
NotesEmbeddedObjectArray = rtitem.EmbeddedObjects
If Isempty ( NotesEmbeddedObjectArray ) Then
Messagebox “Please enter an attachment in field attachment1”
My recommendation is to not use extended notation when addressing fields in the NotesDocument object. The GetItemValue() method is better for several reasons. It is slightly faster, according to what I understand, and it also prevent the code from breaking if a new method or property is added to the class in future versions of Notes.