This happens because there is a relationship in the data among the tables on the first tab and other tab. Something like
Student Roll No is on first tab and marks in other tab.
Unless you save the roll no to the tables you cannot have marks added to the corresponding tables.
Instead of removing such relationship I would suggest to have a button to save the data in the first tab.