Greg,
The OnSaveNew method isn't called until after the Save method. So, it will probably be too late for what you want.
You could place code in the PreSaveHook that will use GETFLDSTATE() to determine if this is an appended record, and then run your code.
>I presume that OBIZOBJ.ONSAVENEW is the correct place to put code that I want to execute only the first time that the record is saved?
>
>Specifically, I need to evaluate an expression at runtime and then write that expression to a field.
>
>Greg
Doug Stalter
"According to the proverb, the best things are the most difficult." -Plutarch