1. in answer to your summary statement: "How can I exclude
records that have a certain code in a text box"
build your SELECT statement with the WHERE clause and have
it equal to your "certain code". test it. if it works then flip
around the WHERE clause yo be NOT or <>.
2. debug your SELECT statement below by stripping out the
ORDER BY clause, test and then add back in each of the three ORDER
BY to see when it produces the error code.
SELECT *
FROM responders
SELECT *
FROM responders
ORDER BY responders.COUNTRY
SELECT *
FROM responders
ORDER BY responders.COUNTRY, responders.`STATE`
SELECT *
FROM responders
ORDER BY responders.COUNTRY, responders.`STATE`,
responders.CITY
i gave you a strategy rather than an answer. hope it
works.