1. the record source of your form have a criteria of
WHERE (((Twins_Detail.SO_ACT_LOCNOTE)=[Forms]![SN_Lookup]![Text0]))
2. The textbox Text0 uses the keydown event
Private Sub Text0_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then ' << waiting for the Enter key tobe pressed
Me.Requery ' do a requery
Call GetCounts
End If
3. The Search button just do a requery of the form, basically the same function when you press the Enter key as in number 2 above
Private Sub Command2_Click()
On Error GoTo Err_Command2_Click
Me.Requery
Call GetCounts
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub