SQL = "SELECT * FROM products WHERE department = '"& strDepartment &"' AND Course = '"& strCourse &"' AND [Section] = '"& strSection &"'"
Basically I have a large book database, that I need to query individual books out of it, it is formatted like so with each being it's own column:
department course section
ACCT 251 01
ACCT 251 01
If it sees multiple entries it is supposed to assume each one is a book for that class. That part works fine. the issue is resulting from the query finding results like this:
ART 251 12
notice the course matches the acct books, this results in the art course displaying in the drop down box, when chosen it of course doesn't display correct information.
how can I rewrite that query to account for thaT?
Basically I have a large book database, that I need to query individual books out of it, it is formatted like so with each being it's own column:
department course section
ACCT 251 01
ACCT 251 01
If it sees multiple entries it is supposed to assume each one is a book for that class. That part works fine. the issue is resulting from the query finding results like this:
ART 251 12
notice the course matches the acct books, this results in the art course displaying in the drop down box, when chosen it of course doesn't display correct information.
how can I rewrite that query to account for thaT?