and BTW, your update code needs to be moved out of the report into the calling code after the RunCommand.
JimD.