CmdButton - How to make button it the default button?

  • Thread starter Thread starter Craigm
  • Start date Start date
C

Craigm

I have three buttons on a form I want one button (cmdFind) to activate
when the enter key is pressed. I have two text boxes that can have
data entered into them.

The three buttons: cmdFind, cmdClear and cmdClose.
The two text boxes: txtPlate and txtModel

I enter a license plate number in a text box or a vehicle model in a
different text box. When I put data into either box and hit enter I
want to activate the cmdFind command button.

Many thanks....the grey cells have failed me!

Craig
 
Set the Default property on that button to True.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Boy do I feel dumb. Thanks for your help. I kept trying to setfocus
and that just was not working at all.

Thanks Again,

Craig
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top