I am trying to avoid a data mismatch for my query. The portion of the query (query2) causing the problem is:
If I remove the WHERE portion, it works fine. If I remove the null records from the table it works (not feasible as I need them in the table for another query. That caAssignmentDate is created from query1 doing this:
I also tried doing a is not null where portion which throws another data mismatch. If I do a is not null on another field on the same record it takes out the #ERROR record... but yet I am still getting the data mismatch on the 2nd query (posted 1st here).
I tried wrapping this in Iif(IsNumeric,....,0 but that still results in a #ERROR.... where am I going wrong? lol how can i get these null fields to not cause this data mismatch, besides removing them from the table as that isn't feasible.
Code:
SELECT Date()-[caAssignmentDate] AS AsgnAge
FROM Query1
WHERE (((Date()-[caAssignmentDate])>10));
If I remove the WHERE portion, it works fine. If I remove the null records from the table it works (not feasible as I need them in the table for another query. That caAssignmentDate is created from query1 doing this:
Code:
caAssignmentDate: CDate(Mid([Query1]![pxCreateDateTime],5,2) & "-" & Mid([Query1]![pxCreateDateTime],7,2) & "-" & Left([Query1]![pxCreateDateTime],4))
I also tried doing a is not null where portion which throws another data mismatch. If I do a is not null on another field on the same record it takes out the #ERROR record... but yet I am still getting the data mismatch on the 2nd query (posted 1st here).
I tried wrapping this in Iif(IsNumeric,....,0 but that still results in a #ERROR.... where am I going wrong? lol how can i get these null fields to not cause this data mismatch, besides removing them from the table as that isn't feasible.