LIKE

  • Thread starter Thread starter PATRICK
  • Start date Start date
P

PATRICK

How do I refer to an actual field within a LIKE statement


for example

PARAMETERS BITIWANT TEXT;
SELECT WHATEVER FROM WHEREVER WHERE ((WHEREEVER.THEONE)
LIKE *[BITIWANT]*));


THIS DOESNT WORK

PATRICK
 
PATRICK said:
How do I refer to an actual field within a LIKE statement


for example

PARAMETERS BITIWANT TEXT;
SELECT WHATEVER FROM WHEREVER WHERE ((WHEREEVER.THEONE)
LIKE *[BITIWANT]*));


.... WHEREEVER.THEONE LIKE "*" & [BITIWANT] & "*"
 
How do I refer to an actual field within a LIKE statement


for example

PARAMETERS BITIWANT TEXT;
SELECT WHATEVER FROM WHEREVER WHERE ((WHEREEVER.THEONE)
LIKE *[BITIWANT]*));


THIS DOESNT WORK

Concatenate the wildcards as strings:

PARAMETERS BITIWANT TEXT;
SELECT WHATEVER FROM WHEREVER WHERE ((WHEREEVER.THEONE)
LIKE "*" & [BITIWANT] & "*"));

<love your example names!>

John W. Vinson[MVP]
 

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

Back
Top