Help with access form (1 Viewer)

associates

Registered User.
Local time
Yesterday, 21:22
Joined
Jan 5, 2006
Messages
94
Hi,

I was wondering if anyone might be able to help me with this question. I have a form that is used for access authentication. In the form, there is a textbox for password and two buttons i.e. ok and cancel. My question is this. As soon as the user enters a password and hit enter key, i want the form to disappear and let the user access to the database.

What's happening at the moment is that when the user hit the enter key after entering his password, it goes to the OK button but doesn't let you in until you have to hit another enter key again.

I hope i explains it well otherwise let me know.

Thank you in advance and look forward to hearing from you.
 

carash77ash

Registered User.
Local time
Today, 14:22
Joined
Jan 13, 2006
Messages
81
thats because you have set the command button event to click.

Go to anyother form and you will notice that when you hit enter on a field it goes to the next field. To rectify this put the same code on password (enter event) as you have on the command button. That way no matter wether the user hits enter after password or clicks ok button it should let them in.

Hope this Helps

Ash
 

Users who are viewing this thread

Top Bottom