Setting focus

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

I have a command button to create a new record. what code do i need to
set the focus to a certain field?

Many thanks in Advance
Greg
 
I have a command button to create a new record. what code do i need to
set the focus to a certain field?

Many thanks in Advance
Greg

[SomeControl].SetFocus
 
I'd set the focus to the first enterable field in the current tab order:

me.selheight=1
me.selheight=0

HTH,
TC
 

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

Similar Threads

Set focus 4
read focus of controls 1
set focus on combo box 1
Set Form Focus 1
SubForm does not accept focus when adding a new record ? 4
Bypass code 4
set focus with command button 1
problem w/ set focus 7

Back
Top