Hi
I hope someone here can help with this problem.
I have two text boxes, one for part number one for qty. If the user enters a qty and presses enter it is stored and focus moves to the other box.
I use the validate event of the qty box so that if the user enters a qty but does not press enter this is trapped.
What I have a problem with is if the user uses the mouse to click the part number box without first pressing enter to store the qty. A message box is triggered by the validate event of the qty box and the user can either store, return or cancel. So far so good but if the user choosed store the value is stored by a function and the focus should switch to the text box he has just clicked ready to input the next part number.
What actually happens is that the cursor appears in the text box but the mouse pointer stays as an I-beam anywhere on the form and dragging over the text in text2 will select it. I have to click again to be able to enter text with the keyboard.
Sorry for the rambleing description but if anyone can make sense of this and explain the behaviour I would be very grateful.
TIA
Andy
I hope someone here can help with this problem.
I have two text boxes, one for part number one for qty. If the user enters a qty and presses enter it is stored and focus moves to the other box.
I use the validate event of the qty box so that if the user enters a qty but does not press enter this is trapped.
What I have a problem with is if the user uses the mouse to click the part number box without first pressing enter to store the qty. A message box is triggered by the validate event of the qty box and the user can either store, return or cancel. So far so good but if the user choosed store the value is stored by a function and the focus should switch to the text box he has just clicked ready to input the next part number.
What actually happens is that the cursor appears in the text box but the mouse pointer stays as an I-beam anywhere on the form and dragging over the text in text2 will select it. I have to click again to be able to enter text with the keyboard.
Sorry for the rambleing description but if anyone can make sense of this and explain the behaviour I would be very grateful.
TIA
Andy