check this out for simple code to add a row to a repeating table on a button click:
http://aspalliance.com/667_CodeSnip_Add_Row_to_InfoPath_Repeating_Table_on_Button_ClickNaturally, you will have to change this depending on how you have set up your repeating table.
Hope this helps....