I am currently trying to run a query that will use values in a text box to filter.
For example (taken from the SQL View of the Query Design):
SELECT *
FROM tbl01_CaseTimeDetail
WHERE (((tbl01_CaseTimeDetail.attorney_branch) in ([Forms]![frm02_CaseTime]![txtBranch])));
Now here is the problem. IF ([Forms]![frm02_CaseTime]![txtBranch]) is equal to A, then the query returns values where the attorney_branch is equal to A. If ([Forms]![frm02_CaseTime]![txtBranch]) = A,C (basically more than one value) then the query returns no values. But if I replace ([Forms]![frm02_CaseTime]![txtBranch]) (using Query Design view) with IN ("A","C" I get values. Now have have set ([Forms]![frm02_CaseTime]![txtBranch]) to equal ("A","C" and I still get no values.
All help is appreciated.
Deborah
For example (taken from the SQL View of the Query Design):
SELECT *
FROM tbl01_CaseTimeDetail
WHERE (((tbl01_CaseTimeDetail.attorney_branch) in ([Forms]![frm02_CaseTime]![txtBranch])));
Now here is the problem. IF ([Forms]![frm02_CaseTime]![txtBranch]) is equal to A, then the query returns values where the attorney_branch is equal to A. If ([Forms]![frm02_CaseTime]![txtBranch]) = A,C (basically more than one value) then the query returns no values. But if I replace ([Forms]![frm02_CaseTime]![txtBranch]) (using Query Design view) with IN ("A","C" I get values. Now have have set ([Forms]![frm02_CaseTime]![txtBranch]) to equal ("A","C" and I still get no values.
All help is appreciated.
Deborah