OnRowChange makes insertRecord work