Getting error while executing following query in access 2007, how to solve this?
my query is :
SELECT
A.PRODUCT
, A.DISPBANK
, COUNT(*) AS RecCount
, SUM(Amt) AS TotAmt
FROM
CBWCFAPENDINGPAYMENTDATA A
WHERE
A.MATCH ='Y'
AND A.ID LIKE'*(SELECT [CASHIN_ID] FROM CBWCFAMISUPLOAD WHERE VENDOR='BRINKS' AND NZ(MATCH,'')='Y')*'
GROUP BY
A.PRODUCT
, A.DISPBANK

Likeand'-LIKE'*(SELECT ..... Also - can you use aSelectstatement like that within aLike(asking as not sure)?