hmm...
ok, try something like this as the sql statement
sql = "SELECT COUNT(*) FROM <tablename> WHERE " & a & " IN ('1','2','3','4','5','6','7','8','E','A','B','N','W','D','T','Q')"
This will find all the records in the table that has your criteria in fieldname a, and count how many records...