when you open the form ,frmClass detail, it would have a subform frmRoster.
put an ADD button on the form
in the bottom footer of frmRoster, put a textbox, txtCount where source: =Count(ClientID)
it would not allow additions unless the subform count < 10.
Code:
sub form_OnCurrent()
btnAdd.enabled= me.frmRoster!form!txtCount < 10
end sub
clicking the button opens an entry form ,frmStudent, to fill out all student info,
or
the form lets user pick an existing person, and then click SAVE button to add them, then update the subform button to turn off additional entries if you hit the limit.