R
rjw24
I have a range of unbound textboxes that operate as search boxes. I would
like to type a name (whether this be full, first or surname) in to the box
and then the database searches for a record where that name appears in ANY
one of those 3 fields. The same data does not exist in these fields but
related data does
I am unsure about whether I can do this using Allen Brownes serach form
tutorial. The code I have used is below and whilst this will search the one
field I have mentioned, if I use the Or function it does not work. Could
anyone help or at least point me in the right direction.
If Not IsNull(Me.txtSearch) Then
strWhere = strWhere & "([Name] Like ""*" & Me.txtSearch & ""*")"
End If
The other two fields I wish to search [Associates] and [Companies]
Thanks
like to type a name (whether this be full, first or surname) in to the box
and then the database searches for a record where that name appears in ANY
one of those 3 fields. The same data does not exist in these fields but
related data does
I am unsure about whether I can do this using Allen Brownes serach form
tutorial. The code I have used is below and whilst this will search the one
field I have mentioned, if I use the Or function it does not work. Could
anyone help or at least point me in the right direction.
If Not IsNull(Me.txtSearch) Then
strWhere = strWhere & "([Name] Like ""*" & Me.txtSearch & ""*")"
End If
The other two fields I wish to search [Associates] and [Companies]
Thanks