Dear Eric,
Thanks for replying. Yes, I was actually trying to use the OnLoad event of the Editform to set values before, but it just doesn't work. The code "pLayer.Edit" is not in an applet, just as part of the AXF layer, and all form fields are tied to feature fields. Strangely enough, if I just use a line like
Application.ExecuteCommand ("featureproperties")
on the editable layer, it all works fine. The OnLoad event is triggered, and all fields are populated.
I'll have a go with your suggestions, let you know the outcome.
Cheers,
Almar.