Can you update a sub-form without closing main form?

Can you update a sub-form without closing main form?

Can you update a sub-form while still in the main form?

I what to update a Unique ID number when still in the main form to use in another Sub-form. Mainly just to save time.