Set focus to Combobox

S

Snurre

Hi..

What is the proper code to setfocus to a combobox, this
piece of code don't work....

[Forms]![formname]![comboboxname].SetFocus

snurre
 
F

fredg

Hi..

What is the proper code to setfocus to a combobox, this
piece of code don't work....

[Forms]![formname]![comboboxname].SetFocus

snurre

It works for me.
In which event are you placing the code?
Is the event in the same form as the combo box?
If so, you can use Me!ComboBoxName.SetFocus
 
G

Guest

Hi. thanks

me!comboboxname.setfocus works....

-----Original Message-----
Hi..

What is the proper code to setfocus to a combobox, this
piece of code don't work....

[Forms]![formname]![comboboxname].SetFocus

snurre

It works for me.
In which event are you placing the code?
Is the event in the same form as the combo box?
If so, you can use Me!ComboBoxName.SetFocus
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
 
Top