Hi,
This should be pretty straightforward, but I do not seem to succeed.
How do I pass the value of a combobox to a function?
This is my current code:
And this is the code behind the button:
And it gives me an error. What do I do wrong?
Thanks in advance,
Timo
This should be pretty straightforward, but I do not seem to succeed.
How do I pass the value of a combobox to a function?
This is my current code:
Code:
Function UpdateDealer(iDealer As Integer, oDealer As Integer)
'stuff
End Function
And this is the code behind the button:
Code:
Private Sub Transitions_Click()
Me.Recalc
UpdateDealer(Me.NewDlr.Value, Me.OldDlr.Value)
End Sub
And it gives me an error. What do I do wrong?

Thanks in advance,
Timo
Last edited: