Use the BeforeInsert event procedure of your subform.
Cancel the event if there are already too many records.
If this is important, you might want to DCount() the relevant records in the
subform's table rather than just read Me.RecordsetClone.RecordCount.