B
Brandon
I have a query that I am needing to pull certain data from a table. I have
been able to get this query to work if I plug in the criteria manually that I
am needing to filter. However, when I setup the criteria to pull it from a
text box on a form then the query returns no results, even though the value
that is in the text box is the same criteria that I typed in manually and it
worked. Can anyone help me figure this one out? The sql statement is below.
*DOES NOT WORK*
SELECT Security.Username, Security.States
FROM Security
GROUP BY Security.Username, Security.States
HAVING (((Security.States) Like "*[forms]![Form1]![Text27]*"));
*WORKS*
SELECT Security.Username, Security.States
FROM Security
GROUP BY Security.Username, Security.States
HAVING (((Security.States) Like "*OK*"));
Thanks,
Brandon
been able to get this query to work if I plug in the criteria manually that I
am needing to filter. However, when I setup the criteria to pull it from a
text box on a form then the query returns no results, even though the value
that is in the text box is the same criteria that I typed in manually and it
worked. Can anyone help me figure this one out? The sql statement is below.
*DOES NOT WORK*
SELECT Security.Username, Security.States
FROM Security
GROUP BY Security.Username, Security.States
HAVING (((Security.States) Like "*[forms]![Form1]![Text27]*"));
*WORKS*
SELECT Security.Username, Security.States
FROM Security
GROUP BY Security.Username, Security.States
HAVING (((Security.States) Like "*OK*"));
Thanks,
Brandon