On form1 I have a command button to open form2. Before opening form2 I open form2 first in design mode to add an extra command button to form2 using the following code:
Dim ctl As Control
Set ctl = CreateControl(FormName, acCommandButton, , , , 100, 100)
I want to set this newly created...