Dear,
I have a project with about 300 forms.
In a table of my database i have their names.
So i would like to record all the objects of every form in my db by writing something on the mdi parent form.
I try with CreateObject and GetObject methods by passing the string of the form's name, but i have the error message Activex component can't create object.
Any ideas?
Many thanks
I call the following Sub on The Load event of MdiForm
Private Sub FillObjects(frmName As string)
Dim obj as Object
Dim ctl as Control
set obj=CreateObject(frmName)
' GetObject has also the same problem
for each ctl in obj
' Execute Commands on the database
next
End Sub
I have a project with about 300 forms.
In a table of my database i have their names.
So i would like to record all the objects of every form in my db by writing something on the mdi parent form.
I try with CreateObject and GetObject methods by passing the string of the form's name, but i have the error message Activex component can't create object.
Any ideas?
Many thanks
I call the following Sub on The Load event of MdiForm
Private Sub FillObjects(frmName As string)
Dim obj as Object
Dim ctl as Control
set obj=CreateObject(frmName)
' GetObject has also the same problem
for each ctl in obj
' Execute Commands on the database
next
End Sub