It's my understanding that scripts run from an inquiry screen cannot edit (something about oSession being read only, no matter what object you open).
You can always use:
R070------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
------------------------------