focus on control in forms

hi all, i created a form with a subform. whenver i opened the form, the focus will be on a control in the subform, and not on a control in the mainform. i have tried changing the focus of the control by using coding but it cannot be done. funny that forms with subforms in standard navision can do that…

Hi jordi, try setting a value for “ActiveControlOnOpen” in the properties of your main form. You might as well make sure “SaveControlInfo” on the form is set to Yes. Saludos Nils

Hi, Please set the ID of subform in ActiveControlOnOpen property of main form.