Here's the situation - for one reason and another, I want to have a "Save Record now" button on a form. Which the large part of I've done. But I've got a problem (as usual 
I do some validation on one of the controls on saving (it is a 10 digit number which has a check digit, uses a standard mod 11 method). However, if that control has the focus when I click save, the .value in that control can be different from the .text in there - the .value only gets updated when focus moves away from the control. At least I presume that's what's happening (?)
So, my question is - is there a way to force this update when I click save, either by taking focus off of the text box, or some other way?
BTW, the button I'm using is actually an image with a _click event as I wanted to use a pretty picture instead of a standard Windows format button, and I can't just give focus to the image (it gives me an error).
So am I missing something obvious here.
Any help much appreciated.
Cheers.
I do some validation on one of the controls on saving (it is a 10 digit number which has a check digit, uses a standard mod 11 method). However, if that control has the focus when I click save, the .value in that control can be different from the .text in there - the .value only gets updated when focus moves away from the control. At least I presume that's what's happening (?)
So, my question is - is there a way to force this update when I click save, either by taking focus off of the text box, or some other way?
BTW, the button I'm using is actually an image with a _click event as I wanted to use a pretty picture instead of a standard Windows format button, and I can't just give focus to the image (it gives me an error).
So am I missing something obvious here.
Any help much appreciated.
Cheers.