Query not working with Data Access page

R

R. Weston

i have the following query:

PARAMETERS [SpecToSearchBy] Text ( 255 );
SELECT *
FROM sec1
WHERE (((sec1.spec) Like "*" & [SpecToSearchBy] & "*"));

which works fine when i try it in access. The parameter
is requested and i enter something like "prf" and it
returns all the data. Now when i try it through the data
access page, it gets no results.

I tried:

PARAMETERS [numbertofind] Long;
SELECT *
FROM test
WHERE [test].[test] = [numbertofind];

with some numerical data through the data access page and
that worked.

Is there something that has to be done different with
using LIKE and text?
 

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