"Randi" <RSaddler@[EMAIL PROTECTED]
> wrote in message
news:<R9TCb.11784$JW3.8837@[EMAIL PROTECTED]
>...
> Hi All,
> I have a problem on a username password login form. I use:
> txtPassword.Text = StrConv(txtPassword.Text, vbProperCase) to validate
the
> proper case when someone enters their name and password. It work when
you
> use the button to continue, but if you hit enter on your keyboard the
event
> apparently doesnt lose focus and it says you entered the wrong password.
Neither the LostFocus nor Validate events are reliable IMO because
they do not fire consistently. Clicking toolbar buttons, menu items
and pressing enter to trigger the default command button are just a
few cases where they don't happen. You can use them for simple
validation if you want but never assume that they will run. In this
case, have the command button code do the StrConv.


|