I have the following problem:
I am using two queries to parse imported data, they are both selecting data The imported dataset is pretty complex, but this reproduces the error.
QueryA:
SELECT CDbl(FieldA) As DblA, Imported.* From Imported WHERE FieldA IS NOT NULL
QueryB:
SELECT * FROM QueryA WHERE DblA > 7 AND DblA < 600
QueryA runs fine, QueryB throws an invalid use of null error
If I insert the results from QueryA into a table and run QueryB against that I do not receive the error, however, this is not desired.
If I remove the WHERE
from QueryB it runs fine.
Is there a different workaround for this? Or should I just accept the redundant table?
NZ
solve it?SELECT * FROM QueryA WHERE NZ(DblA,0) > 7 AND NZ(DblA,0) < 600
. Any Null values are replaced with 0. – HohenlindenNZ
does not solve it. There are no null values in that column. – OutmodedImported.*
from the QueryA first and then explicitly start adding fields back to QueryA. You might find a field in the dataset that ms-access is having an issue with. – WatersImported.*
– Outmoded