in last code where is target :9 change abaut where is place in the your table. If place in the table 5 you enter it in code 4, if place 7 enter 6 , ecc..