Setting focus for combo box control

C

ctdak

Since the SetFocus method doesn't work with combo box controls, how do you
programatically do this for a combo box?
 
S

StrayBullet via AccessMonster.com

Me.cboName.SetFocus isn't working for you? Are you using it in the OnLoad
event of the form?
 
C

ctdak

That is correct. This is in a form BeforeUpdate event procedure. Your exact
sample construct gives a compile error. If I use "Me!cboName.SetFocus" then
I get a run time error 438 - "object doesn't support this property or method".

The combo box in this case has a value list. Maybe that has something to do
with it.

ctdak
 

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