Cannot put document in EditMode in Postopen event

I have a form that was developed in Notes 5 that included the following code:

Sub Postopen(Source As NotesUIDocument)

Source.EditMode = True

Call Source.Refresh

.

.

Call Source.FieldSetText( Fieldname, Text )

End Sub

In R5 it worked fine; the document would be opened, put into edit mode, refreshed (I used this to ensure the editmode worked) and then the field would be changed.

In Notes 6 it will not allow me to do the Source.Refresh so I removed it and now it won’t accept the FieldSetText because it says the document is not in edit mode.

I would be extremely grateful for any help.

Richard

Subject: re: Cannot put document in EditMode in Postopen event

I’m guessing it is an access issue. Something else changed when you upgraded. Can you put the document in edit mode with ?

p.s. The refresh will not work if you cannot get into edit mode.