English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Following code dosnt work...why ?

Private Sub Form_Load(....)
cmdok.setfocus
End Sub

How can u do this ? (I know it can be done in a different way but dont know how.)

2006-07-16 03:30:59 · 3 answers · asked by RedishBlack 1 in Computers & Internet Programming & Design

I m seeking for a very logical reson & an alternative way to do it in form_load even.
(I know it can be done but dont know how..)
Help me plezz.

2006-07-16 22:39:10 · update #1

3 answers

Put it in form activate:

Private Sub Form_Activate()
cmdok.SetFocus
End Sub

2006-07-16 17:30:49 · answer #1 · answered by VBACCESSpert 5 · 0 0

If you want any particular control to be on the focus you can set the Tab Index property of the control as 0


Hope this helps

2006-07-17 00:44:56 · answer #2 · answered by cmr 3 · 0 0

Hai *,

in form load event focus is on form,
try it another event,or call another function

2006-07-16 10:42:14 · answer #3 · answered by dewman_byju 4 · 0 0

fedest.com, questions and answers