Rocco,
It should not be a problem. The following code I have in VB.Net - but it is
really pretty similar in Access - please let me know if you have problems:
Dim control As Access._Control ' should be just Control in Access
If createInForm Then
' In Access you will need to use Set in the following line, app - is a
reference to Access.Application object, sectionIndex - is the index of form
section the control is created in:
' parentName should be the name of your tab control
control = app.CreateControl(formName, controlType, sectionIndex,
parentName)
Else 'If createInReport
control = app.CreateReportControl(reportName, controlType, sectionIndex,
parentName)
End If
control.Name = controlName
' then set the rest of the controls properties
HTH