AlvaroCity
Registered User.
- Local time
- Today, 12:16
- Joined
- Jul 16, 2016
- Messages
- 70
Hello there
Developing my database i bumped into this problem.
I wanted to compare 2 values from 2 columns of a combobox. Depending on these logical operations of these 2 values, a third text box would change its value.
This is the code that I have so far to make it clearer.
This code works but it does not compare row to row and thats what i need.
Please do not hesitate to ask for more information if its needed
thank you for your help.
Developing my database i bumped into this problem.
I wanted to compare 2 values from 2 columns of a combobox. Depending on these logical operations of these 2 values, a third text box would change its value.
This is the code that I have so far to make it clearer.
This code works but it does not compare row to row and thats what i need.
Code:
If Me.cboPedidoDetalleID.Column(6) > Me.cboPedidoDetalleID.Column(8) Then
Me.txtNumeroPiezas.Value = Me.cboPedidoDetalleID.Column(8)
Else
Me.txtNumeroPiezas.Value = Me.cboPedidoDetalleID.Column(6)
End If
thank you for your help.