Put the student id field (or combo box of a list of all student ids) in the form header.
Bind your form to the student records table.
On the student id field AfterUpdate even, filter you form with the student Id and requery to the form.
This really has nothing to do with a Macro.