Forum Moderators: open
What kind of select statement would I use so that the term(s) or partial term that they enter could be used to search any part or all of a specific field.
Set RS = DB.Execute("SELECT * FROM CONCERT_SELECTIONS WHERE _______________ ORDER BY COMPOSER ASC")
Thank you.
This would match anything with "xyz" in the composer field. 'xyz*' would find only items starting with 'xyz'.
I believe * is the wildcard in Access. Normally in SQL, you would use %...Access is, well, Access.
To make sure you get all the results I'd do a
UCASE(Table.Fields) LIKE '%" & UCase(Form.TextBox) & "%') since, not like Access' user-interface search-mask, in SQL a comparison like this is case-sensitive.