Ok on the .text and .value distinction. I wanted whatever was in either textbox, whether it had the focus or not. But this failed as wiithout focus .text would return Null - when you had just entered something. There's 2 text boxes so determining which had focus (so .text would be reliable) may have been one way (is there a HasFocus ?) but setting focus to a 3rd (otherwise unused) textbox worked and .text not used.
Micron, I meant by setting the other textbox to "", anything there would be gone, so you could never have text in both at the same time.
But is this extra textbox only to grab the focus, is that the 'right' way to do it ? Then you want to hide it too, which wasn't easy. How else might it be done? And of course the image control should take the focus away from the text box, then everything would have been fine.
Micron, I meant by setting the other textbox to "", anything there would be gone, so you could never have text in both at the same time.
But is this extra textbox only to grab the focus, is that the 'right' way to do it ? Then you want to hide it too, which wasn't easy. How else might it be done? And of course the image control should take the focus away from the text box, then everything would have been fine.