Select a text box

S

Simon Dowse

Hi,

I know there is a simple line of code that can be built
into a control so that when you click on the control it
goes to another control. I want to be able to search by
reference number in a form, and I know there is a way that
by clicking on a control, the reference number field will
be selected if not already.

Any ideas?
 
V

Van T. Dinh

Use the GotFocus Event of the first control to move the Focus to the second
control like:

Me.SecondControl.SetFocus
 

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

Top