No cursor when a form opens

A

albert.repasky

On a main form I have some buttons that when clicked on open other
forms. When most of the forms open they do not have a cursor in any
field. I want it on the first field. I checked the tab order, etc.
Two forms when opened have the cursor on the first field. But it is
the only field were you can enter data. The forms that do not work
have more than one field.

What can I do on the forms that do not have a cursor when they open?

Thanks,
Arep
 
A

albert.repasky

create an event on form_Load and write the code
me.[first_field_name].setfocus



On a main form I have some buttons that when clicked on open other
forms.  When most of the forms open they do not have a cursor in any
field.  I want it on the first field.  I checked the tab order, etc..
Two forms when opened have the cursor on the first field.  But it is
the only field were you can enter data.  The forms that do not work
have more than one field.
What can I do on the forms that do not have a cursor when they open?
Thanks,
Arep- Hide quoted text -

- Show quoted text -

I tried to put that in the Form_Load, but it will not let me. The
help says it has to be after the form is loaded. Do you have an idea
where then I should setfocus?

Thanks,
Arep
 
A

albert.repasky

create an event on form_Load and write the code
me.[first_field_name].setfocus
- Show quoted text -

I tried to put that in the Form_Load, but it will not let me.  The
help says it has to be after the form is loaded.  Do you have an idea
where then I should setfocus?

Thanks,
Arep- Hide quoted text -

- Show quoted text -

This form is called form a button on a subform. Does that make a
difference? That maybe for command has to be different?

Thanks,
Arep
 

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