A family of Microsoft relational database management systems designed for ease of use.
Hi Timur
Following on from my previous code, lets say you add two combo's to the form. It needs to be in design mode and you also need to select each of the fields to add to the layout. So, if you look at the following code you should get an idea of what is required:
Dim frmNewForm As Access.Form
Dim ctlNewControl As Access.Control
Set frmNewForm = Application.Forms("form4")
Set ctlNewControl = CreateControl(frmNewForm.Name, acComboBox, acDetail, , , 250, 250, 1400, 500)
Set ctlNewControl = CreateControl(frmNewForm.Name, acComboBox, acDetail, , , 450, 450, 1400, 500)
DoCmd.OpenForm "form4", acDesign
Dim ctl As Control
For Each ctl In frmNewForm
ctl.InSelection = True
Next ctl
RunCommand acCmdStackedLayout
This adds both combo's to a stacked layout.