I keep getting this error and I can’t figure out why. If anyone could help it would be much appreciated.
Syntax error (missing operator) in query expression ‘(((plot.[annual charge]) Like "*")) UPDATE Plot SET Plot . [annual charge] = IIF([annual charge]<,[annual charge]+[annual charge]*15/100,[annual charge]*10/100);
Code:
SELECT plot.[annual charge]
FROM (
(
member INNER JOIN plot ON (member.[member number] = plot.[member table])
AND (member.[member number] = plot.[member table])
AND (member.[member number] = plot.[member table])
) INNER JOIN produce ON plot.[plot number] = produce.[plot number]
)
INNER JOIN vegetables ON produce.[vegtable name] = vegetables.[vegetable name]WHERE (((plot.[annual charge]) LIKE "*"))UPDATE Plot
SET Plot.[annual charge] = IIF([annual charge] <, [annual charge] + [annual charge] * 15 / 100, [annual charge] * 10 / 100);
WHERE
andUPDATE
. Could that be the reason for this error? – René VogtIIF()
function call seems wrong. You have:IIF([annual charge] <, [annual charge]...
(ellipsis mine). You need something besides a comma following that first[annual charge]
. What do you want to compare it to? – STLDev