ms access - SQL: Using Textbox value in "LIKE" query condition -
sql: so, i'm trying make query condition comparing "row" values value of textbox placed in form (using ms access '10) use of wildcards, , line propably wrong in bold part, got little idea do:
select table.*
table
(((table.row) like '%"[forms]![someform]![texbox1]"%'));
ideas?
somehow (((table.row)=[forms]![someform]![textbox1])); works search full string.
where table.row alike '%' & [forms]![someform]![texbox1] & '%'
in ansi 89 mode ...
where table.row '*' & [forms]![someform]![texbox1] & '*'
in ansi 92 mode ...
where table.row '%' & [forms]![someform]![texbox1] & '%'
or use instr()
instead of like
comparison.
where instr(1, table.row, [forms]![someform]![texbox1]) > 0
Comments
Post a Comment