I want to delete entry in table [tBuy Invoice] where linked table [tBuys] has no record. Statement is -
-----------
DELETE [tBuy Invoice].*
FROM [tBuy Invoice]
WHERE ((([tBuy Invoice].BuyInvcID)
In (
SELECT [tBuys].[BuyInvcID]
FROM [tBuys]
WHERE [tBuys].[BuyID] Is Null
)));
-------------
But the Delete query do not find any entry. I think it is because 'Is Null' do not return 'no entry list', but what can be done?
Thanks
-----------
DELETE [tBuy Invoice].*
FROM [tBuy Invoice]
WHERE ((([tBuy Invoice].BuyInvcID)
In (
SELECT [tBuys].[BuyInvcID]
FROM [tBuys]
WHERE [tBuys].[BuyID] Is Null
)));
-------------
But the Delete query do not find any entry. I think it is because 'Is Null' do not return 'no entry list', but what can be done?
Thanks
Comment