B
Brian Bastl
Hi all,
As a continuation of another thread, I'm trying to set the rowsource of a
listbox in the AfterUpdate event of txtSearch, but I'm not getting the
quotes and/ or ampersands right. I've seemingly tried every combination of
double and triple ampersands and quotation marks.
Me.lbResults.RowSource = "SELECT " & _
"tblClients.ClientID, [ClientFirst] & " " & [ClientName] AS Client " & _
"FROM tblClients " & _
"WHERE [ClientFirst] & " " & [ClientName] Like ""*" & Me.txtSearch & "*"""
Can someone straighten this out?
TIA,
Brian
As a continuation of another thread, I'm trying to set the rowsource of a
listbox in the AfterUpdate event of txtSearch, but I'm not getting the
quotes and/ or ampersands right. I've seemingly tried every combination of
double and triple ampersands and quotation marks.
Me.lbResults.RowSource = "SELECT " & _
"tblClients.ClientID, [ClientFirst] & " " & [ClientName] AS Client " & _
"FROM tblClients " & _
"WHERE [ClientFirst] & " " & [ClientName] Like ""*" & Me.txtSearch & "*"""
Can someone straighten this out?
TIA,
Brian