error 3787
access two columns combine to one columnPaperno | Expaperno
-----------------------
a1 | a2
a3 | a4
become
Paperno
--------
a1
a2
a3
a4
SELECT *
FROM jounals
WHERE Paperno not in (select Paperno from payment where paid='1' and len(Paperno)>1 UNION ALL select ExPaperno from payment where paid='1' and len(ExPaperno)>1 ) and revw='Accepted'
it's working when it's independent sentence: select Paperno from payment where paid='1' and len(Paperno)>1 UNION ALL select ExPaperno from payment where paid='1' and len(ExPaperno)>1
but when it's placed to where condition as subquery , it's invalid. i don't know what's going on.
Any help is appreciated