Can't get a field to take focus

S

Suzette

I am having fits with a problem I can't figure out.

I have a textbox (TEXTBOX1) which, after entering information in it, I have
a dropdown combo box appear with a list created based on what is typed in
the textbox. When the user tabs out of the combo box it enters information
into another textbox. (TEXTBOX2). I then want the cursor to move to yet
another textbox (TEXTBOX3).

My code for the combobox_exit.

TEXTBOX2 = combobox.list... etc.
TEXTBOX3.setfocus

The problem is, the cursor moves to the next field after TEXTBOX2 every
time. I tried setting focus to different fields with no luck. I'm
stumped.

Any ideas/suggestions?

Thank you ever so much.

Suzette
 
C

Cindy M -WordMVP-

Hi Suzette,

You haven't given us enough information.

1. which application and application version are you working in? Is this a
UserForm, or something else?

2. If this is a Word document, are these controls from the Forms toolbar or the
controls toolbox? And is the document protected as a form?
I am having fits with a problem I can't figure out.

I have a textbox (TEXTBOX1) which, after entering information in it, I have
a dropdown combo box appear with a list created based on what is typed in
the textbox. When the user tabs out of the combo box it enters information
into another textbox. (TEXTBOX2). I then want the cursor to move to yet
another textbox (TEXTBOX3).

My code for the combobox_exit.

TEXTBOX2 = combobox.list... etc.
TEXTBOX3.setfocus

The problem is, the cursor moves to the next field after TEXTBOX2 every
time. I tried setting focus to different fields with no luck. I'm
stumped.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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