ya we have a table in ms-access and we have assigned autonumber to the field srno.we have created a form in VB and there is a command button called delete now if we click on the button a record from MS-Access gets deleted but now since we have assigned autonumber now suppose if we have records srno say 1,2,3,4,5 and i delete srno=3 then in the ms-access table it should show me 1,2,4,5 it should show me 1,2,3,4, right how can we do that is there any code can somebody help me in coding tooooo the records should get adjusted automatically..