I have the following situation.
I have created a SubTable that is connected to the Sales Lines. When the user edits a specific sales line, he can press Shift-F9 and open the table SubTable in a form called SubForm that displays info relative to the specific Sales Line record.
The client has requested that the wants to simulate the following functionality with one button click from inside the subform : create a new sales line using the same Item No from the previous record and create a new line for the SubTable connected to the new Sales Line. All this without leaving the subform.
I have created this functionality, but I need to set the focus on the new Sales Line record BEFORE the user closes the SubForm, so that the SubForm shows the new SubTable record.