D
DS
I have a listbox, when I select a record it sets an unbound textboxes value.
Me.TxtOne = Me.Listbox.Column(1)
The underlying value is long Integer
I have a second textbox (Me.TxtTwo) on the page it's default value is set to
1
I then want to check the values against each other.
If Me.TxtOne > Me.TxtTwo Then
Msgbox ">"
ElseIf Me.TxtOne = Me.TxtTwo Then
Msgbox "="
End If
The problem is that even if the are (appear) equal it always returns
greater. Any help is appreciated.
Thanks
DS
Me.TxtOne = Me.Listbox.Column(1)
The underlying value is long Integer
I have a second textbox (Me.TxtTwo) on the page it's default value is set to
1
I then want to check the values against each other.
If Me.TxtOne > Me.TxtTwo Then
Msgbox ">"
ElseIf Me.TxtOne = Me.TxtTwo Then
Msgbox "="
End If
The problem is that even if the are (appear) equal it always returns
greater. Any help is appreciated.
Thanks
DS