that dont fix the problem. because it is split form combo boxes are in the form header and fields are in the detail. so with tab order are ordered combo boxes or fields depend where you are. in Continuous form default cursor position is in the first field.You would want to look at your Tab Order.
i can work without changing anything, but i want to work with less clicking. maybe i wasnt clear enough i dont want to set focus on control but to field. cursor is by default on control no need to change that if i dont put it on field. and i need focus only on load (opening the form). why is opening form with focus on field dangerous. in continuous form default cursor position is on a field.Or reset the focus via the form's Current event if this is something that you need after each Save or Navigate action.
maybe i don't know to speak with terms. when i speak of a control i mean about combo boxes. yes combo boxes are used for searching but i use form first for entering data later when needed for searching. so it seems more convenient to me to open to filed ready for entering data. and i tried with Me.fieldname.SetFocus. not success. what i do wrong.What in your mind is the difference between a "control" and a "field"? I explained how focus works. And you had two suggestions of how to do what you asked but now you're saying that isn't what you want because you think "control" and "field" are different in this context.
If your tab order is correct, the user can tab to the first data entry field although that makes sense only if somehow the first record displayed is always the one the user wants to edit.
If the combos are unbound and used for searching, seems to me that it makes far more sense for focus to be in the combo when the form opens.
Where did you put the code? Did you use the form's Open Event?and i tried with Me.fieldname.SetFocus. not success. what i do wrong.
yes i have menu for differnet actions. i open form from a menu. i put code after opening form on load event is that what is wrong?Where did you put the code? Did you use the form's Open Event?
How do I know? How can anyone know? You didn't post the exact code you used. For all we know it has typos in it. Whenever you want someone to assess your code problem, you MUST post the exact code you used. Do not type it in the little box. Copy it from your code module and paste it. Otherwise we have no shot at coming up with an answer.i put code after opening form on load event is that what is wrong?
Adding a button is fine but clicking on the * at the bottom of the form works without any code.i took another approach. add go to new record and now is solved. thanks for all suggestions.