Hi.
I have a form with a subform. The main form allows an employee lookup. The user selects an employee name from a combobox which then displays that employee's info (address, phone, etc). If the employee chosen is correct, the user presses the <TAB> key and the focus moves to the subfom allowing the user to use another combo box to select a company name that that particular employee had sales for. Once a company is selected, the focus moves to another field on the subform where the user has to enter commission info. There are then two unbound calculated text boxes that automatically displays commission information based on the company selected. This all works great except for one thing:
Once the commission info has been entered and the user clicks the <TAB> button, the two calculated controls do their thing but the focus moves immediately to a new record and, of course, clears the subform screen. This occurs so quickly that the user cannot verify that the commission info calculated is correct. I decided that a "Y/N" command button would suffice with the default set to "YES" and a label asking the user if the calculations are correct. If the user selects "YES" then a new record opens on the subform. If "NO", then the focus moves back to the "Commission" field where the user can re-enter different commission data. Can someone give me a hint on how to do this?
Sorry for being so "wordy"!
Many TIAs for any help and/or suggestions.
Mark
I have a form with a subform. The main form allows an employee lookup. The user selects an employee name from a combobox which then displays that employee's info (address, phone, etc). If the employee chosen is correct, the user presses the <TAB> key and the focus moves to the subfom allowing the user to use another combo box to select a company name that that particular employee had sales for. Once a company is selected, the focus moves to another field on the subform where the user has to enter commission info. There are then two unbound calculated text boxes that automatically displays commission information based on the company selected. This all works great except for one thing:
Once the commission info has been entered and the user clicks the <TAB> button, the two calculated controls do their thing but the focus moves immediately to a new record and, of course, clears the subform screen. This occurs so quickly that the user cannot verify that the commission info calculated is correct. I decided that a "Y/N" command button would suffice with the default set to "YES" and a label asking the user if the calculations are correct. If the user selects "YES" then a new record opens on the subform. If "NO", then the focus moves back to the "Commission" field where the user can re-enter different commission data. Can someone give me a hint on how to do this?
Sorry for being so "wordy"!
Many TIAs for any help and/or suggestions.
Mark