Delete records with criteria

ckleung

Registered User.
Local time
Today, 21:20
Joined
Feb 17, 2004
Messages
27
Hi,

I have written the following code:

CurrentDb().Execute "Delete * From BasicData Where IsNull([DischargeDate] = False)"

However, the outcome is that all the records that [DischargeDate] without data were deleted. I want to delete the records that [DischargeDate] had fill in data.

Can anyone help? Thanks in advance.
 
Thanks Rich and Pat

Thanks a lot. You let me get more understanding in writing codes.
Actually, I tried the way Rich showed me, and I also try the following code:

where IsNull([DischargeDate]) = False

It also works.
 

Users who are viewing this thread

Back
Top Bottom