Delete * From TableName Where Field1 Not In ('5555')
The problem is that in access, this statement WILL delete any records where Field1 = Null, but when running it through VB using a command object, it does not delete nulls. Any ideas why this isn't working? I know a workaround would be to do this:
Delete * from tablename where field1 Is Null or field1 <> '5555'
I'm just wondering if there is an explanation for why the first statement doesn't delete nulls. Thanks!
The problem is that in access, this statement WILL delete any records where Field1 = Null, but when running it through VB using a command object, it does not delete nulls. Any ideas why this isn't working? I know a workaround would be to do this:
Delete * from tablename where field1 Is Null or field1 <> '5555'
I'm just wondering if there is an explanation for why the first statement doesn't delete nulls. Thanks!