G
Guest
Hi again - still having error
This is the subquery
SELECT*FROM[Donors]WHERE NOT EXISTS(SELECT[Cashgiftid]FROM[Cashgifts]WHERE(Date>=DateAdd("yyyy",-2,date()))And([Cashgifts].[DonorNum]=[Donors].[DonorNum])
This is the error
The syntax of the subquery in this expression is incorrect
Check the subquery’s syntax and enclose the subquery in parenthese
If I enclose the entire subquery in parentheses I get this error
You have written a subquery that can return more than one field without using the EXISTS reserved word in the main query’s FROM clause. Revise the SELECT statement of the subquery to request only one field
Any suggestions
----- Allen Browne wrote: ----
No: the SELECT does not go in quotes
Yes: renaming your DATE field would need to be followed through where it i
used
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.htm
Reply to group, rather than allenbrowne at mvps dot org
highlighted SELECT. But it also may be having to do with the missing where
I will try it when I get to work tomorrow
This is the subquery
SELECT*FROM[Donors]WHERE NOT EXISTS(SELECT[Cashgiftid]FROM[Cashgifts]WHERE(Date>=DateAdd("yyyy",-2,date()))And([Cashgifts].[DonorNum]=[Donors].[DonorNum])
This is the error
The syntax of the subquery in this expression is incorrect
Check the subquery’s syntax and enclose the subquery in parenthese
If I enclose the entire subquery in parentheses I get this error
You have written a subquery that can return more than one field without using the EXISTS reserved word in the main query’s FROM clause. Revise the SELECT statement of the subquery to request only one field
Any suggestions
----- Allen Browne wrote: ----
No: the SELECT does not go in quotes
Yes: renaming your DATE field would need to be followed through where it i
used
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.htm
Reply to group, rather than allenbrowne at mvps dot org
SELECT need to be in quotes? When it error out several times, it alwayJeffF2F said:Thank you for you help. The WHERE is missing I see. Does the firs
highlighted SELECT. But it also may be having to do with the missing where
I will try it when I get to work tomorrow