Hi All,
I have a form with a text box that can either be typed into or controlled with a spin button, I have the following code for the spin button to align the two items:
This works fine for numbers (you can type a number and then increase or decrease it with the buttons or overwrite a number reached with the buttons) but if you accidentally hit any other key on the keyboard or delete the number in the text box I get an error and am thrown back into the VBA editor. Obviously I need this to be a little more robust for the end users so would appreciate any help in getting the code to ignore text input and allow the number in the text box to be deleted without breaking the form.
Thanks
Bookmarks