Hey guys! Great board!
I have a form with only have one field that loads a query based off that one field. Simple.
However, here is what I have:
SELECT BTN.BTN, BTN.HIERARCHY_ID
FROM Customer
WHERE BTN.BTN LIKE '[Forms]![BTN Search]![Text0]';
Now, in the form I want to be able to use a %. I.E. '12355%'. However, when the SQL command runs nothing is returned since it sees [Forms]![BTN Search]![Text0] as a text string instead of a variable. Make sense? A BTN is like '123457627' NOT '[Forms]![BTN Search]![Text0]'. So I need to get access to put a value in for that instead of taking it as a text string.
Anyone know the syntax to fix this??
THANKS!!
-Tim
I have a form with only have one field that loads a query based off that one field. Simple.
However, here is what I have:
SELECT BTN.BTN, BTN.HIERARCHY_ID
FROM Customer
WHERE BTN.BTN LIKE '[Forms]![BTN Search]![Text0]';
Now, in the form I want to be able to use a %. I.E. '12355%'. However, when the SQL command runs nothing is returned since it sees [Forms]![BTN Search]![Text0] as a text string instead of a variable. Make sense? A BTN is like '123457627' NOT '[Forms]![BTN Search]![Text0]'. So I need to get access to put a value in for that instead of taking it as a text string.
Anyone know the syntax to fix this??
THANKS!!
-Tim