How to not save null records from a subform when I click submit

How to not save null records from a subform when I click submit

Dear All,

I would like to ask you, if a have a subform in which I have set 20 as default entries-records but I only use 3 records, how can I save only these 3 records and not the other 17 which are emty-null?