G
Guest
I've found posts that describe this exact situation, but I can't get the
solutions to work. I know I'm missing something really simple, but I've
spent more than an hour on it and need to move on.
On a lookup form, the user can type in all or part of a Client's Name into
the text box [txtClientName], hit submit, and have the results populate a
list box. The submit button uses VBA coding to build the listbox's
rowsource. Here's my WHERE Clause:
sWhere = "WHERE [ClientName] LIKE '*" & [txtClientName] & "*'"
I only get results that start with whatever is in [txtClientName], but I
want results that have it anywhere within the name. To illustrate:
If [txtClientName] = "Corp" then
I want results of:
"Corporate Tax Attorney"
"Hello Corporation"
but I'm only getting:
"Corporate Tax Attorney"
Any assistance is greatly appreciated.
solutions to work. I know I'm missing something really simple, but I've
spent more than an hour on it and need to move on.
On a lookup form, the user can type in all or part of a Client's Name into
the text box [txtClientName], hit submit, and have the results populate a
list box. The submit button uses VBA coding to build the listbox's
rowsource. Here's my WHERE Clause:
sWhere = "WHERE [ClientName] LIKE '*" & [txtClientName] & "*'"
I only get results that start with whatever is in [txtClientName], but I
want results that have it anywhere within the name. To illustrate:
If [txtClientName] = "Corp" then
I want results of:
"Corporate Tax Attorney"
"Hello Corporation"
but I'm only getting:
"Corporate Tax Attorney"
Any assistance is greatly appreciated.