I'm trying to load a combobox through the spring engines and the code I'm using to load the combobox is as follows:
Private Sub CommandButton1_Click()
Call ListasEmpresas
End Sub
Private Sub ListasEmpresas()
Dim MotorAdm As clsAdmMotor
Dim objEl As clsFichaEmpresa
Dim objEmp As clsFichaEmpresa
Dim objCriador As AdmEngine900.clsCriaMotorAdm 'clsCriaMotorAdm
Set objCriador = New AdmEngine900.clsCriaMotorAdm 'new clsCriaMotorAdm
Set MotorAdm = objCriador.CriaMotorADM(0)
For Each objEl In MotorAdm.Empresas
'Set objEmp = MotorAdm.Empresas.Edita(objEl.Codigo)
ComboBox1.AddItem = objEl.Codigo
Set objEmp = Nothing
Next
End Sub
But you are giving me this message:
What I'm missing from this component.