G
Guest
Hi
I'm trying to pass a control in the parameter of a Subbut it's not working
this is my methode:
Sub MAJCombo(cltCombo As Control)
cltCombo.RowSource = strQuery
cltCombo.requery
end sub
In the after_Click event of my combo box:
Private Sub cboDimension_AfterUpdate()
Dim x as control
x = Me.Name
call MAJCombo(x)
end sub
I have the message type incompatibility and when I click on OK I have NAME
selected
Thanks for your help
I'm trying to pass a control in the parameter of a Subbut it's not working
this is my methode:
Sub MAJCombo(cltCombo As Control)
cltCombo.RowSource = strQuery
cltCombo.requery
end sub
In the after_Click event of my combo box:
Private Sub cboDimension_AfterUpdate()
Dim x as control
x = Me.Name
call MAJCombo(x)
end sub
I have the message type incompatibility and when I click on OK I have NAME
selected
Thanks for your help