Reputation: 1461
I am running this query in Access 2007 and getting a syntax error on this query
UPDATE INQuery SET Awords=(SELECT Coalsce("SELECT (parentdesc & '/' & keyword) From Awords LEFT JOIN INQuery ON Awords.id=INQuery.item_id",";"))
WHERE Awords.id=IN_Query.item_id;
System error in query expression '(SELECT Coalsce("SELECT (parentdesc & '/' & keyword) From Awords LEFT JOIN INQuery ON Awords.id=INQuery.item_id",";"))'.
When I run the query expression separately I get the desired result.
NOTE: To see what Coalsce function is please refer VBA + String splitting
Upvotes: 0
Views: 92
Reputation: 6338
Do you actually need the additional SELECT
?
UPDATE INQuery SET Awords=Coalsce(...) WHERE ...
Upvotes: 3