No cursor when a form opens

  • Thread starter Thread starter albert.repasky
  • Start date Start date
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
 
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
 
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
 
Back
Top