Is it possible to auto populate a sub form on load?

Is it possible to auto populate a sub form on load?

So i want to auto populate fields in a subform based of data passed when the user opens the main form.