The reason behind the the "Un-expected" behavior is very much
expected,
as the Textbox control is bound to the datasource and by default the
CausesValidation
property of the Textbox control is true, when ever the text value of
the Textbox control is
changed, it causes the control to validate the data, when you erase
the text, the value
inside the control is modified, hence forces the control to validate
the data, since the value is empty,
which fails the currency validation check, the focus won't change.

Now you know the reason, post a workaround !! :)

On Mar 16, 6:40 pm, Gojavid <[email protected]> wrote:
> Good morning,
>
> I'm a newbie, so I fully expect that this is a simple issue.
>
> I have a databound textbox that binds to an Access database field,
> Price (currency).  The control works fine when nothing is entered into
> it at all, however if the textbox.text is changed whatsoever the focus
> can't be changed unless a valid number is entered.
>
> So, for instance, I entered "hello" into the textbox and pressed tab.
> The focus won't change, that doesn't surprise me at all, but then I
> erased the text and tried to tab out, and it wouldn't allow it.  If I
> then change the text to a number, I can tab or click out of the
> control.
>
> Does anyone have any ideas?

Reply via email to