PDA

View Full Version : Solved: Enter will run click function



Emoncada
01-21-2008, 06:55 AM
I have a txtpassword that I would like for after the user enters the password and hit's enter it will do the same as they click cmdSignOff button.

Carl A
01-21-2008, 08:54 AM
Set your cmdSignOff button Default Property to True

Emoncada
01-21-2008, 09:01 AM
I just realized that I can't do it that way because I had Changed the CmdSignOff Button into an Image labeled CmdSignOff. Is there a way to do it with the image?

Carl A
01-21-2008, 09:07 AM
Put another command button on your form and hide it or make it very small and set its Default property to true and use it to call your procedure.

Emoncada
01-21-2008, 09:19 AM
Ok i created a CmdDefault Button and Created the Default property to True and visibility = False. Code I put Call CmdSignOff But that's not working This is in a userform. Is there something I am doing wrong.

Emoncada
01-21-2008, 09:20 AM
Or do I need to copy the CmdSignOff procedure also in this CmdDefault button?

Emoncada
01-21-2008, 09:47 AM
OK i got it i made visibility True and put the button behind the image. Works good thanks