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
 
Top