Problem:
I have some records in Account_debits that have empty or probably NULL in the DateTime field dtxndatetm.
When I set my paramaters and requery my view I get the "Operator/Operand type mismatch" error. I amalmost positive the null comparison is the problem because:
1. I know there are null values in the datetime field of some recs
2. I can take the filter on VP_ttxndatetm off and the error goes away.
I can't find any syntax that works.
My sql:
SELECT Account_debits.cinmates_id,;
IIF(EMPTY(Account_debits.yamount).OR.ISNULL(Account_debits.yamount),0.00,SUM(Account_debits.yamount)) AS ydebits;
FROM inmatetrustfund!account_debits;
WHERE Account_debits.cinmates_id = ?VP_cinmates_id;
AND Account_debits.ycreditedamt = 0.00;
AND ?VP_ttxndatetm > IIF(EMPTY(Account_debits.dtxndatetm).OR.ISNULL(Account_debits.dtxndatetm),{},Account_debits.dtxndatetm);
GROUP BY Account_debits.cinmates_id
Other syntax I have tried:
(EMPTY(Account_debits.dtxndatetm) OR;
ISNULL(Account_debits.dtxndatetm) OR;
Account_debits.dtxndatetm <= ?VP_ttxndatetm);
Thanks,
John
I have some records in Account_debits that have empty or probably NULL in the DateTime field dtxndatetm.
When I set my paramaters and requery my view I get the "Operator/Operand type mismatch" error. I amalmost positive the null comparison is the problem because:
1. I know there are null values in the datetime field of some recs
2. I can take the filter on VP_ttxndatetm off and the error goes away.
I can't find any syntax that works.
My sql:
SELECT Account_debits.cinmates_id,;
IIF(EMPTY(Account_debits.yamount).OR.ISNULL(Account_debits.yamount),0.00,SUM(Account_debits.yamount)) AS ydebits;
FROM inmatetrustfund!account_debits;
WHERE Account_debits.cinmates_id = ?VP_cinmates_id;
AND Account_debits.ycreditedamt = 0.00;
AND ?VP_ttxndatetm > IIF(EMPTY(Account_debits.dtxndatetm).OR.ISNULL(Account_debits.dtxndatetm),{},Account_debits.dtxndatetm);
GROUP BY Account_debits.cinmates_id
Other syntax I have tried:
(EMPTY(Account_debits.dtxndatetm) OR;
ISNULL(Account_debits.dtxndatetm) OR;
Account_debits.dtxndatetm <= ?VP_ttxndatetm);
Thanks,
John