Notesdocument.computewithform not upating fields

Notes 8.5.3CD5 - I have an agent that is creating a new document and trying to get a computed field to populate. Using computewithform but no joy - editing then saving the document manually works but my agent simply cannot get the computed field to populate with default value.

Any thoughts or input appreciated.

Thanks

Code follows:

…db, session, etc set up…

Set TACTattdoc = TACTdb.Createdocument()

… code here to update various fields…

Call TACTattdoc.Computewithform(False, False)

TACTattdoc.saveoptions = “0”

Call TACTattdoc.save(True, True)

Subject: I’ve always been a bit confused…

In the documentation for ComputeWithForm, it has never said that it recalculates computed fields, and yet it is widely used to try and do that. And sometimes it seems to work.The documentation says that it does default values, input translation and input validation formulae, and returns true or false depending on whether the data passes validation.

So, I’ve always been confused as to whether it does computed fields too, so I don’t use it for that, myself.

Phil