In my main form I have a [LastName] field that I can scroll with my mouse to advance to any name. I have put code in this field so that On Lost Focus the cursor moves to a new record in subform [UnitsWorkedQuer y subform]. My problem is I can't click back on the LastName field and scroll because the scroll function is remaining in the subform. How can I regain control? Thanks
Part 2: I tried moving the above command to AfterUpdate but now my code will not take me to the new record, it just goes to the first record in the datasheet.
Private Sub LastName_AfterU pdate()
Me.[Units Worked Query subform].SetFocus
DoCmd.GoToRecor d acActiveDataObj ect, , acNewRec
End Sub
Part 2: I tried moving the above command to AfterUpdate but now my code will not take me to the new record, it just goes to the first record in the datasheet.
Private Sub LastName_AfterU pdate()
Me.[Units Worked Query subform].SetFocus
DoCmd.GoToRecor d acActiveDataObj ect, , acNewRec
End Sub
Comment