Using multiple drop downs as criteria in a query to also work individually.

sashapixie

Board Regular
Joined
Aug 29, 2013
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Hi There

I have two drop down menus linked to a query criteria, they work together no problem however they will not work as a single entity. I have added or criteria to look at the lists singularly which works but when you introduce the second criteria I returns the singular result and the joint result. The SQL is below, any help would be appreciated.

SELECT [Project Records].[PEQ Number], [Project Records].Status, [Project Records].[Project Title], [Project Records].[M/E], [Project Records].Client, [Project Records].[Date Received], [Project Records].[Date Requested], [Project Records].[Date Submitted], [Project Records].[Mechanical Works], [Project Records].[Electrical Works], [Project Records].[Builders Works], [Project Records].[Provisional Sums], [Project Records].Preliminaries, [Project Records].[Design Fees], [Project Records].[Record Comments], [Project Records].[Grand Total], [Project Records].[Financial Year]
FROM [Project Records]
WHERE ((([Project Records].[Project Title]) Is Not Null) AND (([Project Records].[Financial Year])=[Forms]![Estimating Menu]![CmbYearSelector])) OR ((([Project Records].Status)=[Forms]![Estimating Menu]![CmbStatusTenderMenu]) AND (([Project Records].[Project Title]) Is Not Null)) OR ((([Project Records].Status)=[Forms]![Estimating Menu]![CmbStatusTenderMenu]) AND (([Project Records].[Project Title]) Is Not Null) AND (([Project Records].[Financial Year])=[Forms]![Estimating Menu]![CmbYearSelector]));
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,223,261
Messages
6,171,076
Members
452,377
Latest member
bradfordsam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top