I'm familiar with writing SQL statements in code but the one that I'm working on currently is giving me a headache.
I'm trying to narrow my records set to records that match three criteria. One is a numeric field the other two are boolean fields. Right now the query is only returning the records that match the number field even though I have set the WHERE criteria to search for the other two values. the statement is below. Please advise. Thanks.
strSQL = "SELECT Call.CallID FROM Call WHERE (((Call.AgentID) = " & id & _
"
AND ((Call.FormsNeedSent) = True) AND ((Call.FormsSent) = False)"
I'm trying to narrow my records set to records that match three criteria. One is a numeric field the other two are boolean fields. Right now the query is only returning the records that match the number field even though I have set the WHERE criteria to search for the other two values. the statement is below. Please advise. Thanks.
strSQL = "SELECT Call.CallID FROM Call WHERE (((Call.AgentID) = " & id & _
"