In a VB6 program accessing an MDB file, the following SQL query is being executed:
> Select * FROM [table1] WHERE ([type] = 1 OR [type] = 2 OR [type] = 6)
> AND ([notes] = Null OR [notes] = '0') AND [date] >=
> cvdate('09/03/2013') ORDER BY [date], [column2]
If I reference Microsoft Access 14.0 Object Library
in the program the returned recordset has 0
rows.
If I reference Microsoft DAO 3.51 Object Library
the returned recordset has over 100
rows.
What is the reason for this difference? Is there a difference between the way the two providers handles the test for Null
? Is this a breaking change for ACE DAO accessing older MDB files?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…