I know I have quotes or something like that in the wrong order but where? I've spent hours on this one line.
I get the following error:Code:CustID = "ABD-33-JJPP" APPLE_TOTAL = Nz(DSum("[FRUITtotal]", "tbl_FRUIT", "[FRUIT] = 'Apple' AND [BRAND] = 'Pink Lady' AND [Customer] = '" & CustID & "'))"
Compile error:
Expected: list separator or )
Why? I hate concatenating variables. I can never get it right. Arrrrgggghhhhhh
I want to total all the pink lady fruit that the variable CustID ordered.