I've been up most of the night trying to get the basic searcg (find
record) facility to pre focus on a particular fielf so that it only
searches that field and returns the data for the whole form.
Here what i have been attempting to alter to set the focus just prior
to the search.
Private Sub Search_Payrollno_Click()
On Error GoTo Err_Search_Payrollno_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Search_Payrollno_Click:
Exit Sub
Err_Search_Payrollno_Click:
MsgBox Err.Description
Resume Exit_Search_Payrollno_Click
End Sub
but if I've clicked on any other field it uses that selected field
instead of the one I want to limit the user to searching in. All
offers most welcome.
Many Thanks
Nemesis