If the form is based on Employee record then the attendence update subform will update automatically (Provided you have defined the SubFormLink property).
If the Form is not based on employee record and the grid on the 1st tab is itself a subform then you will have to write code.
OnActivate of the Attendance Subform, you will have to call a function on the Employee subform that returns the currently selected employee record.