D
Dennis
In Access 2003, I'm trying to write a query using the Query Designer/SQL
window. Basically, I'm trying to execute a query with "LIKE" in it, with a
prompted value. However, the syntax doesn't seem to work, no matter what
permutations I try.
Example:
SELECT Table1.Field1
FROM Table1
WHERE (((Table1.Field1) Like [Prompt] & '%'));
That doesn't work.
WHERE (((Table1.Field1) Like '[Prompt]%'));
That doesn't work either
Any thoughts on how to construct this LIKE would sure be appreciated.
Thanks a bunch!
window. Basically, I'm trying to execute a query with "LIKE" in it, with a
prompted value. However, the syntax doesn't seem to work, no matter what
permutations I try.
Example:
SELECT Table1.Field1
FROM Table1
WHERE (((Table1.Field1) Like [Prompt] & '%'));
That doesn't work.
WHERE (((Table1.Field1) Like '[Prompt]%'));
That doesn't work either
Any thoughts on how to construct this LIKE would sure be appreciated.
Thanks a bunch!