This is normally done using Designer's binding mechanism, whereby the number of rows in a table or a sub-form drive the layout of visual objects. In this case there are several options. Here are two, the pain to implement depends on the complexity of the form.
In both cases, if the middle initial is null and you click the button this is the result:
Steve