Trying to use VBA to make the datasheet portion active.
After clicking a "letter".. say Z on the Split form, VBA runs to find the first record with Z starting as their last name of the Employee... anyway... it finds the first record OK.. but the split form is active... trying to make the Datasheet active for the first record it finds so that they can just start pressing the Page Down Key to start scrolling through all the names that start with "Z".
Thanks for any help/direction provided.
John
Private Sub LetterZ_Click()
FindLetter ("Z")
End Sub
Function FindLetter(strLetter)
Me.EmployeeName.SetFocus
SendKeys "%h,s,%l,e,%n"
SendKeys strLetter
DoCmd.RunCommand acCmdFind
SendKeys "%f"
DoCmd.RunCommand acCmdFind
SendKeys Chr(27)
SendKeys Chr(27)