Combo Box to Not Show Blanks - Is Not Null?

Ben M

New Member
Joined
Aug 13, 2014
Messages
23
Hi,

I have a combo box on a form that refers to a table for the full list which is displayed in descending order. Within the table there are some blanks. I would still like the list to display in descending order but not show the blanks. It looks like I need to incorporate Is Not Null somewhere in the below but when I try and add it I keep getting errors? Any suggestions would be greatly appreciated.

SELECT TblOracleVendorData.[BANK ACCOUNT NUMBER] FROM TblOracleVendorData ORDER BY TblOracleVendorData.[BANK ACCOUNT NUMBER] DESC;

Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Not sure, but
SELECT
TblOracleVendorData.[BANK ACCOUNT NUMBER]
FROM
TblOracleVendorData
WHERE
TblOracleVendorData.[BANK ACCOUNT NUMBER] IS NOT NULL

ORDER BY TblOracleVendorData.[BANK ACCOUNT NUMBER] DESC;
 
Upvote 0

Forum statistics

Threads
1,221,827
Messages
6,162,202
Members
451,752
Latest member
freddocp

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