How to create serial number in sub-form without using if condition

How to create serial number in sub-form without using if condition

hi....
      How to create  s_no on deletion of rows without  using if condition (or) using auto number fields.


 Thanks in advance for your help.

   Raja