G
Guest
I have an unbound textbox on my form, that I would like to use to search for
a borrowers name on the form. There could be several names that could match
or the names could be empty... I have the forllosing after event and its
giving me an error on this line rs.FindFirst "[BorName] ='" &
Str(Nz(Me![Combo147], 0)) & "'"
Anyw reason as to why this s happening?
Private Sub Combo147_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[BorName] ='" & Str(Nz(Me![Combo147], 0)) & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
If Len(Me!Combo147.Column(1)) = 0 Then
DoCmd.ShowAllRecords
Else
DoCmd.ApplyFilter , "[BorName] =
[Forms]![frmCallTracking]![Combo147] "
End If
End Sub
a borrowers name on the form. There could be several names that could match
or the names could be empty... I have the forllosing after event and its
giving me an error on this line rs.FindFirst "[BorName] ='" &
Str(Nz(Me![Combo147], 0)) & "'"
Anyw reason as to why this s happening?
Private Sub Combo147_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[BorName] ='" & Str(Nz(Me![Combo147], 0)) & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
If Len(Me!Combo147.Column(1)) = 0 Then
DoCmd.ShowAllRecords
Else
DoCmd.ApplyFilter , "[BorName] =
[Forms]![frmCallTracking]![Combo147] "
End If
End Sub