Thanks for this Paul - this has worked, and was a much simpler solution.:)
Incidentally, the code had to be attached to the Before Update event. Attaching the code to the After Update event made it run in a loop of update form (manually)>run code>update form (programatically)>run code>update...