S
sheniece via AccessMonster.com
I have a unbound text box on a form, the user is suppose to enter a social
security number so he/she can find the person it belongs to, but for some
reason it's not working, the code is below.
Dim strSearch As String
strSearch = "[SSN] = " & Nz(Me![tbxSSNSearch].Value)
With Me.RecordsetClone
.FindFirst strSearch
If .NoMatch Then
MsgBox "Patient not found"
Else
Me.Bookmark = .Bookmark
End If
End With
security number so he/she can find the person it belongs to, but for some
reason it's not working, the code is below.
Dim strSearch As String
strSearch = "[SSN] = " & Nz(Me![tbxSSNSearch].Value)
With Me.RecordsetClone
.FindFirst strSearch
If .NoMatch Then
MsgBox "Patient not found"
Else
Me.Bookmark = .Bookmark
End If
End With