Query not picking up null values

Ben2k

Board Regular
Joined
Oct 16, 2002
Messages
77
Hi,

I have a query which includes the following

Feild: Part Number
Table: SERVWORK
Criteria:
<>"num" And <>"perf" And <>"sun" And <>"mag5w30" And <>"sublet" And <>"mag10w40" And <>"slx" And <>"syntrax" And <>"anti" And <>"dexron iii"

It works fine UNLESS the part number is blank, i.e. null in that case the query excludes that record.

How can I fix it?

Thanks
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Ben2K,

I would suggest that you change your criteria field to a custom field like this.

Part Number1: Nz(Part Number)

This will convert all your null fields to blanks instead(or zero's can't remember which)

HTH
Cal
 
Upvote 0

Forum statistics

Threads
1,221,829
Messages
6,162,232
Members
451,756
Latest member
tommyw

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