HELP! How do use LIKE in unbound text box?

G

ges

I have the query as follow:
WHERE (((tblAccounts.a_FileType)='Arden') AND ((tblAccounts.a_BillName) Like
"Psych%"))

I have unbound textbox, the value in text box = the value in tblAccounts.
a_BillName

In VBA when I use following code it work:
((tblAccounts.a_BillName) = " & """" & txtbox & """" & ")) "

But it has to be exact name. How do I use LIKE in the above query (such as
LIKE "Psych%") ?

Thanks in advance for any input.

B.rgds,
Ges
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top