I am writing a query in Access where I have to get all the records where a particular column is empty, how I can do this?
This is what I am thinking it should be, but its not working.
SELECT *
FROM TABLE
WHERE PARTICULARCOLUMN = ''
This would handle both empty strings ('') and NULL values in the column.
SELECT *
FROM TABLE
WHERE Nz(PARTICULARFIELD,'') = ''
Try...
WHERE PARTICULARFIELD Is Null
Sample from Web:
SELECT [Table1].[CustomerID], [Table2].[CustomerID]
FROM [Table1] LEFT JOIN [Table2] ON [Table1].[CustomerID] = [Table2].[CustomerID]
WHERE ((([Table 2].[CustomerID]) Is Null));
See: http://www.fabalou.com/access/Queries/isnullquery.asp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With