Setting focus

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
 
F

fredg

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
 
T

TC

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

Top