M
MN
Hi - Please help with this:
I have a form open, when the user click button search for a Lastname in in
the link table dbo_A. the problem is: it's alway FOUND the record, but
actually it doesn't.
Set RsA = CurrentDb.OpenRecordset("dbo_A", dbOpenDynaset, dbSeeChanges)
With RsA
If Not IsNull(Me.lname) Then
strWhere = strWhere & "([lname] = """ & Trim(Me.lname) & """) "
End If
.FindFirst strWhere
If .NoMatch Then
MsgBox "NOT-FOUND"
Else
MsgBox "FOUND!"
End If
Debug.Print strWhere
End With
I have a form open, when the user click button search for a Lastname in in
the link table dbo_A. the problem is: it's alway FOUND the record, but
actually it doesn't.
Set RsA = CurrentDb.OpenRecordset("dbo_A", dbOpenDynaset, dbSeeChanges)
With RsA
If Not IsNull(Me.lname) Then
strWhere = strWhere & "([lname] = """ & Trim(Me.lname) & """) "
End If
.FindFirst strWhere
If .NoMatch Then
MsgBox "NOT-FOUND"
Else
MsgBox "FOUND!"
End If
Debug.Print strWhere
End With