if the table is the RecordSource for the Form you can use
FindFirst with Me.RecordsetClone
With Me.RecordsetClone
.FindFirst "[LastName] = '" & TextBoxName & "'"
If .NoMatch Then
MsgBox "No Matching Record for Data Entered"
Else
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
End With
if the table is not the RecordSource you can use DLookUp
ReturnData = DLookup("[Title]", "employees", "[LastName] = '" & TextBoxName & "'"
or you can open a form that is filtered on that value entered
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmEmployees"
stLinkCriteria = "[LastName]=" & "'" & Me![TextBoxName] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Hope this Helps
PaulF