LIKE operator?

A

_Adrian

I need to build a query that will allow me to use a LIKE operator.. but I
*also* need to be able to prompt the user for a variable.. obviously, LIKE
[Enter Last Name] doesn't work in the criteria field.. what would be proper
structure to make this work? Thanks-
 
J

John Mishefske

_Adrian said:
I need to build a query that will allow me to use a LIKE operator.. but I
*also* need to be able to prompt the user for a variable.. obviously, LIKE
[Enter Last Name] doesn't work in the criteria field.. what would be proper
structure to make this work? Thanks-

LIKE [Enter Last Name] & "*"

or perhaps

LIKE "*" & [Enter Last Name] & "*"
 

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