Thanks CJ_London,
I have done as you suggested in your previous reply, put the code in to beforeupdate even on the form. But it still didn't work, stoped right at number 1000, although the order number is 1019 :(
So, I corrected it by change all the Order_Code into Number, and subOrder_Code into...