If you are using BOTH text boxes to search then heres the thing:
if you search just one box (last or first) then you cannot use the other in the query.
BEST approach:
make a continuous form that shows ALL records.
the header has the 2 textboxes, txtFirst, txtLast
then put in a button to FILTER the data. It will look at both boxes, then set the filter for 1 or both:
Code:
'----------------
sub btnFilter_click()
'----------------
dim sWhere as string
sWhere = "1=1"
if not IsNUll(txtFirst) then sWhere = sWhere & " and [First]='" & txtFirst & "'"
if not IsNUll(txtLast) then sWhere = sWhere & " and [LAST]='" & txtLast & "'"
If sWhere = "1=1" Then
Me.FilterOn = False
Else
Me.Filter = sWhere
Me.FilterOn = True
End If
end sub