av8tordude
08-26-2012, 11:18 AM
I have this code to count up, if there is no value (which works fine)
TextBox2 = SpinButton2.Value
If I click the up arrow, to add to the existing value, it starts counting from 1, instead of the next higher value (i.e. 3...4...5 etc). In an attempt to resolve the issue, I used TextBox2 = TextBox2 + SpinButton2.Value, which works, but only if there is a value in the textbox. If there is no value, it errors.
Also, If I click the down arrow, it does not count down. It simply does not do anything. If there is a value, I like to be able to count down, but once reaching 0, it should go blank.
Can someone assist. Thanks you kindly
TextBox2 = TextBox2 + SpinButton2.Value
TextBox2 = SpinButton2.Value
If I click the up arrow, to add to the existing value, it starts counting from 1, instead of the next higher value (i.e. 3...4...5 etc). In an attempt to resolve the issue, I used TextBox2 = TextBox2 + SpinButton2.Value, which works, but only if there is a value in the textbox. If there is no value, it errors.
Also, If I click the down arrow, it does not count down. It simply does not do anything. If there is a value, I like to be able to count down, but once reaching 0, it should go blank.
Can someone assist. Thanks you kindly
TextBox2 = TextBox2 + SpinButton2.Value