Filter Combo Box on multiple other combo boxes

G

Guest

Is it possible to filter a combo box to only show data based on the results
of the users choosing of information in 2 other combo boxes? I know this is
possible to do with 1 combo box, but can it be done based on 2 combo boxes?
Here is the code I have now and was just thinking I could add an "AND"
statement with another WHERE clause to the end of the statement but that
doesn't work.

SELECT [All Audit Test].Audit, [All Audit Test].AuditType, [All Audit
Test].Location FROM [All Audit Test] WHERE ((([All Audit
Test].AuditType)=Forms![Master Data]!AuditType));
 
G

Guest

You can use more then one combo as a filter

SELECT [All Audit Test].Audit, [All Audit Test].AuditType, [All Audit
Test].Location FROM [All Audit Test]
WHERE [All Audit Test].AuditType=Forms![Master Data]!AuditType
And [All Audit Test].OtherFieldName = Forms![Master Data]!OtherFieldNameInForm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Please help 5
"LIKE" statement 12
combo box filter 1
Cascading Dependant combo boxes 0
how to show data only from selected combo boxes ? 0
Filter subform somehow! 6
Synchronize 2 combo boxes 1
Combo Box Question 4

Top