tabstops in userforms


Posted by L. van der Steen on October 21, 2001 11:18 AM

say, I have a textbox in which I want a specific type of data entered which I can only check 'afterupdate'. The information I want is not entered and I want the user to have to enter in the same textbox again. How do I automatically go to this textbox; this way also compelling the user to enter data, for instance a registration number, date or such. I have tried working with the set focus commands or manipulating with tab stops, but it don't wanna do what I wan'it to do. Can anybody help me?



Posted by Jonathan on October 21, 2001 11:33 AM

Put a Cancel=True in the Exit event of the control if you don't get the value in the control that you accept. Then focus never leaves the control , you don't have to re-Set it.

HTH