I have a textbox that is unbound.
When a user selects an item from a separate (also unbound) drop-down list, I associate the .column(1) data to this textbox.
The issue is that the value is numeric.
When I try comparing the value to a number X != X because one X is an actual number, while the other X is in text format.
The other issue is this:
This textbox that contains a number... I want there to be a leading 0. For regular numeric fields, this would simply be a matter of setting the format property to '00', then if the value is 3, it would appear as 03.
Obviously, since this textbox is formatted for text, it only displays 3, not 03.
As a solution to the first part, instead of using
If (textbox1.value = field2.value) then
I can use
If (CInt(textbox1.value) = field2) then
This then properly compares a number with a number... but it does not solve the leading 0s issue.
Thanks for any help,
- arm1
When a user selects an item from a separate (also unbound) drop-down list, I associate the .column(1) data to this textbox.
The issue is that the value is numeric.
When I try comparing the value to a number X != X because one X is an actual number, while the other X is in text format.
The other issue is this:
This textbox that contains a number... I want there to be a leading 0. For regular numeric fields, this would simply be a matter of setting the format property to '00', then if the value is 3, it would appear as 03.
Obviously, since this textbox is formatted for text, it only displays 3, not 03.
As a solution to the first part, instead of using
If (textbox1.value = field2.value) then
I can use
If (CInt(textbox1.value) = field2) then
This then properly compares a number with a number... but it does not solve the leading 0s issue.
Thanks for any help,
- arm1