How do I write a code to sum up the SMS cost per message for a specific course ID Eg. C0001 = $0.50 + $0.10 + $0.20 .... I've tried creating a label and changing the control source to
=DSum("SMS COST PER MESSAGE","SMS TABLE","COURSE ID = C0001")
=DSum("SMS COST PER MESSAGE","SMS TABLE","COURSE ID = "C0001"")
Error is The expression you have entered contains invalid syntax You may have entered an operand without an operator
but to no avail Thank you