Non-Summary fields in QuerySave event still display as Summary?

I have a very simple test form with 20 text fields packed with data …I have this code in nearly every event of the form…including

Sub Querysave(Source As Notesuidocument, Continue As Variant)

Dim doc As NotesDocument

Set doc = source.Document

Forall i In doc.Items

	If i.name Like "R*" Then

		i.IsSummary = False

	End If

End Forall

Call doc.Save(True,False)

End Sub

Using the lotus script debugger I see that my fields are

non-summary on the End Sub. When the document appears in the UI they are Summary again. There is no other debuggable statement I can look at.

What am I missing?

Subject: Non-Summary fields in QuerySave event still display as Summary??

When a document is saved text fields in the form are automatically set to summary so will override your code in the QuerySave event as it happens after this event runs.

If you run this code in the PostSave event then it should work.

**UPDATED ** Just read your other post and the PostSave event will be too late for your 32K error. You could use rich text fields instead.

Subject: Non-Summary fields in QuerySave event still display as Summary??

This code will only work if there are no fields on your FORM that you’re setting to non-summary. In other words, if you are building a field in the document that doesn’t exist on the form then this code will work, but it won’t work otherwise.

regards,

raphael