autofill_rcrds function

Autofill the records