Check this link
Unzip this file, it contains a access2003 version
database. It contains two forms. when you open the
Form1 and when you click the command button, it opens
the Form2 and adds the Textboxs at the runtime (dynamically).
The code which i sent you previously it works with
VisualBasic not with the VBA. Here the syntax are bit
I guess you needed this help with using VBA. In the above
code given by you to implement in the command2_click
event, i guess you want it in the MS-Access forms.
Open the form in the design view and check the onclick
event of that button. There you can see the code of
adding the controls and opening the form.
Hope this helps.